Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Set specific time for email notifications about Trusted Updates
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin
// Download MainWP Customisations here:
// More about the plugin:
add_filter( 'mainwp_updatescheck_sendmail_at_time', 'mycustom_mainwp_updatescheck_sendmail_at_time', 10, 1 );
function myhook_mainwp_updatescheck_sendmail_at_time( $hour ) {
$hour = '12:00'; // send email notifactions after 12:00
return $hour;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.