Last active
February 27, 2019 17:30
-
-
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.
This file contains 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 | |
/** | |
* 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