What are scheduled callbacks?
What are scheduled callbacks?
What are scheduled callbacks?
Scheduled parsing of XML feed into wp_insert_post()
Uncaught DivisionbyZeroError: Wp_reschedule_event
Action to create custom field based on shipping class works when manually triggered, but not on cron schedule
You can add debugging statements to your code to verify if the cron job is being scheduled and executed correctly. like you can use error_log() to log messages to the PHP error log: public function schedule_event() { if (!wp_next_scheduled(‘redirection_checker_hook’)) { error_log(‘Scheduling redirection_checker_hook’); wp_schedule_event(time(), ‘every_three_minutes’, ‘redirection_checker_hook’); } } public function redirection_checker_func() { error_log(‘Running redirection_checker_func’); update_option(‘test_option’, ‘success’); … Read more
WordPress cannot detect (present, loaded) mysqli
The function as written there will succeed silently, since you haven’t actually passed in any data to change. You should be able to see what I mean by altering your function slightly: function trigger_post_update( $post_id ) { return wp_update_post( array( ‘ID’ => $post_id ), true ); } You don’t need the get_post() to check if … Read more
wp-cron.php is not secured. It can be called from anywhere and by anyone.
First, turn on WP_DEBUG to get a log of the issue. In your wp-config.php you can add something like: define(‘WP_DEBUG’, true); //record all the errors define(‘WP_DEBUG_LOG’,__DIR__.’/wp-content/.wp-debug.log’); //you may want to move this to a more secure location (outside of the web root) define(‘WP_DEBUG_DISPLAY’, false); //don’t show errors on the front end Second, depending on your … Read more
Creating a background process that doesn’t need HTTP