Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_action( 'my_cron_action', 'do_magic' );
function do_magic() {
// do something every hour
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment