Modify the hour when the daily cron job for maintenance runs. The filter ‘gdmaq_cron_daily_maintenance_job_hour‘ allows you to change the hour.

This filter provides 1 argument.

Arguments

  • $hour: hour of the day when to run the cron job, default: 4.

Example

Change maintenance hour.

add_filter('gdmaq_cron_daily_maintenance_job_hour', 'custom__gdmaq_cron_daily_maintenance_job_hour', 10, 1);
function custom__gdmaq_cron_daily_maintenance_job_hour($hour) {
  $hour = 3;

  return $hour;
}

 

0
0
471
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply