Last active
April 16, 2020 11:56
-
-
Save bogdan-mainwp/7f99de14e7ccaafaf8b87543e9bc517c to your computer and use it in GitHub Desktop.
Set specific time for email notifications about Trusted Updates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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