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');
?>