Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
register_activation_hook( __FILE__, 'my_cron_activation' );
function my_cron_activation() {
wp_schedule_event( time(), 'minute', '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.