How to disable the “Your site has updated to WordPress x.y.z” admin email?
In your functions.php add: add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );
In your functions.php add: add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );
Your problem is with the conditional, not with the used action (I think). This line is probably not verifying in any situation: if( ( $_POST[‘post_status’] == ‘publish’ ) && ( $goalsupport === $totalsupport ) ) { I can not now what $goalsupport and $goalsupport are, both variables are undefined in your code, so I’m going … Read more
Have you tried to check/combine it with a wp_next_scheduled existance/work of your hook?
Not receiving any e-mails after new comment
First, you should know that current_user_can() only accepts capabilities, not roles, so you are using it wrong and you can end up with unexpected results. That being said, to exlude users form WP_User_Query you can use the exclude parameter: // Get current user data $user = wp_get_current_user(); // Check if current user is a subscriber … Read more
Sending SMTP mail using a server with self-signed SSL
The code to schedule a cron event takes a timestamp as the first parameter. As long as you set the original timestamp to be 9:00 (on any day) the twicedaily trigger should take care of the rest wp_schedule_event( $timestamp, $recurrence, $hook, $args )
If you assign wp_mail() to a variable you can echo the results. Should return either true or false. $email = wp_mail(email,subject,message); var_dump($email); I don’t recognise the send_message() function in your code.
You should always encode the url when outputting to a link tag: urlencode(‘http://test.domain.nl/[email protected]’) Rewrite After further examination of your website. It’s clear that the URL is being rewritten when a trailing slash is absent uitschrijven?email=. Doing research I have stumbled on this issue which is identical to yours. The solution is to add a RewriteRule … Read more
For SMTP and Gmail, you will need turn on 2 step verification, then create an App specific password in security panel of google account. Use your email and that password as login credential. You’ll also need use TSL or SSL for SMTP. Hope this help!