Skip to content

Instantly share code, notes, and snippets.

@maheshwaghmare
Last active February 27, 2019 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maheshwaghmare/ae5e5beb8d9deb53eda0311cad16c803 to your computer and use it in GitHub Desktop.
Save maheshwaghmare/ae5e5beb8d9deb53eda0311cad16c803 to your computer and use it in GitHub Desktop.
Show all scheduled events OR corn jobs in WordPress. Use this snippet for only debugging purpose.
<?php
/**
* Show all scheduled events OR corn jobs.
*
* NOTE: Use this snippet for only debugging purpose.
*
* @todo Change the `prefix_` and with your own unique prefix.
*
* @since 1.0.0
*/
if( ! function_exists( 'prefix_show_all_scheduled_events' ) ) :
function prefix_show_all_scheduled_events() {
echo "<pre>";
print_r( wp_get_schedules() );
echo "</pre>";
wp_die( );
}
add_action( 'admin_head', 'prefix_show_all_scheduled_events' );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment