Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Activation Cron Job
register_activation_hook( __FILE__, 'my_cron_activation' );
function my_cron_activation() {
wp_schedule_event( time(), 'hourly', 'my_cron_action' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.