Tag: WordPress/プラグイン開発
add_action('publish_post', 'register_single_cron'); function register_single_cron($id){ wp_schedule_single_event(tim() + 300, 'custom_function'); } function custom_function(){ //your logic goes here }