Created
June 14, 2022 05:16
-
-
Save jehanf/ebf67d4227e823b0f62ea35fe2619f1b to your computer and use it in GitHub Desktop.
Quick & dirty way to debug a Cron Task in WordPress
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
add_action( 'init', function() { | |
error_reporting( 1 ); | |
do_action( 'your_cron_action' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment