Skip to content

Instantly share code, notes, and snippets.

@bogdan-mainwp
Last active April 16, 2020 11:56
Show Gist options
  • Save bogdan-mainwp/7f99de14e7ccaafaf8b87543e9bc517c to your computer and use it in GitHub Desktop.
Save bogdan-mainwp/7f99de14e7ccaafaf8b87543e9bc517c to your computer and use it in GitHub Desktop.
Set specific time for email notifications about Trusted Updates
<?php
// Add the following code snippet to the PHP section in the MainWP Custom Dashbaord 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