0
我在每天00:01 AM设置了wp_schedule_event。在这里我的代码:我想设置wp_schedule_event特定时间
<?php
add_action('wp', 'cron_hookup');
/**
* On an early action hook, check if the hook is scheduled - if not, schedule it.
*/
function cron_hookup() {
if (! wp_next_scheduled('cron_funct')) {
wp_schedule_event(time(), 'hourly', 'cron_funct');
}
}
add_action('cron_funct', 'cron_order');
?>