Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create new schedule times via 'cron_schedules' filter hook
<?php
// using 30min time interval
wp_schedule_event( time(), '30min', 'wptc_custom_schedule_hook', $args );
// using weekly time interval
wp_schedule_event( time(), 'weekly', 'wptc_custom_schedule_hook', $args );
// using monthly time interval
wp_schedule_event( time(), 'montly', 'wptc_custom_schedule_hook', $args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment