Software Developer

List All wp-cron Scheduled Events

This returns an array of all scheduled WP cron events. For each cron event, it gives the hook name, the recurrence schedule, and the time interval in seconds.

_get_cron_array()

Example Usage

echo '<pre>'; 
print_r( _get_cron_array() ); 
echo '</pre>';

To print the list of scheduled events to the error log:

error_log( print_r( _get_cron_array(), true ) );

By

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]