Created
December 2, 2014 20:17
-
-
Save Tmeister/932cb1f1d528839cd4fd to your computer and use it in GitHub Desktop.
Activation Cron Job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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