You can run WP cron manually by calling: http://example.com/wp-cron.php?doing_wp_cron
If you don’t want the automatic cron to run while you’re debugging, then add this to your /wp-config.php
file:
define('DISABLE_WP_CRON', true);
If you’re on a development environment and want to output debug information, calling it manually like that will show you your debug output.
Alternatively you can use PHP’s built-in error_log function to log message strings to the error log for debugging. You’d need to use this in conjunction with WP_DEBUG settings, as mentioned by Rarst.
Related Posts:
- What is the curl error 52 “empty reply from server”?
- Delete thousands of cron jobs
- Check if function called by cron job
- Wp_Schedule_Event every day at specific time
- Delete all scheduled events with a particular hook
- Running WordPress on the Command Line – Turn off Delayed Output?
- How is WP Cron Locking implemented?
- wp-cron.php – How are WP’s Cron transients removed?
- Better handling of WP-CRON server load abuse
- When does next Cron Job run (time from now)?
- wp_schedule_event not working?
- run a cron task without obstructing page load?
- Recurring scheduled task help
- How to make wp cron job not fire immediately?
- Cron jobs for deactivated plugins
- Cronjob not working as expected – issue with hook?
- Trigger a cron every 24h GMT -8
- Run function at specific time
- Is it safe to run wp-cron.php twice if the first instance takes too long?
- WordPress Cron Schedule the if and else statement
- Schedule event every second thursday of the month
- ”doing_wp_cron” in URL even if ALTERNATE CRON is not in wp-config
- execute function in wordpress plugin using crontab
- Sending out scheduled emails
- How do i schedule cron in wordpress for each second?
- How do I get a Function in my functions.php to execute with a cron job?
- Cronjob returns a lot of REMOTE_ADDR, SERVER_PORT, SERVER_NAME, etc errors
- Will WordPress use the newer schedule if it is updated using the filter ‘cron_schedules’?
- “Error establishing database connection” when trying to run script through crontab
- WP Cron job every 1st and 15th of the month
- Web Scraping with Cron
- Template Tag not available in real Cron Jobs
- WordPress Caching – Transients API or “update_user_meta ” Cronjob?
- Insert WordPress page via external (cron) script?
- WP Super Cache All Pages [closed]
- WP Cron is “half-failing” to insert posts
- Any insights into Transient API locking, cron and threading?
- Set a menu item to display during certain times
- WP CRON on shared hosting that does not allow loopback connections?
- Auto Publish On Cron
- WordPress Cron how to find out my event recurrence?
- Wp Maintenance mode and external cron job
- How to use a class within a cron job function
- Can a scheduler be set on submit of a form in wordpress?
- Cron and WP Super Cache in Preload Mode
- WordPress Cron Job in Bookly Plugin [closed]
- Which file do I run a cron job on to make Twitter News Feed update more often?
- Remind a user about their account if they have not used it for 6 months
- Manual Cron job occasionally outputting WP die message
- How refresh wp_schedule_event without restart a plugin
- Cron job script – loading wordpress system fails
- Is it possible to use `wp_schedule_event` with real cronjobs?
- How to use wp cron job to run a function
- What is the best practice to set and update Transient value of API data in every minute?
- Plugin has a cron job, but the function doesn’t actually run
- Are uploads directories created on a schedule?
- Create wp_cront events dynamically upon user submission
- Schedule an action callback
- wp_schedule_event didn’t work
- wp_schedule_event action not running
- is WGET correct for this cron job?
- Refresh page using Cron after any post is published
- pingbacks testing
- Best Way to Enter Maintenance Mode Programmatically
- Cron job to change CPT
- Is there a delay to include call function modification in a scheduled cron task?
- How to pass variable from other function?
- Cron task with scheduled timestamp in the past
- Use wp_remote_get() with a private or password protected page?
- Call a PHP file from Cronjob
- Add cron schedule to upload video on save_post
- unix cronjob for wordpress does not stop running
- I want to write something that restarts the httpd service when my apache server dies
- does wordpress auto update work without a cron job?
- WordPress can’t seem to handle tens of thousands of scheduled posts? Cron Breaks
- Running a cron job manually and immediately
- Cron job for let’s encrypt renewal
- Prevent duplicate cron jobs running
- how to create a cron job that runs on the first day of month [duplicate]
- escaping double quotes and percent signs (%) in cron
- What is the correct syntax to run cron every 4 hours? [duplicate]
- What does * * * * * (five asterisks) in a cron file mean? [duplicate]
- Creating a background process that doesn’t need HTTP
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- Initialize WordPress environment to use in a real cron script
- Update CPT post meta with update_post_meta and cron job
- Can you register two cron events in a single function?
- Does using WP-cron make the site slower for the user?
- running wp-cron.php using php not wget
- WordPress function, Run using Crontab
- Display a random tag but using cron to control frequency of change
- What causes wp_schedule_single_event to fire off?
- WordPress cron job running more than once
- Can/should we delete wordpress cron jobs with no action?
- WP Import All Multiple Dynamic Link Imports
- Activate Plugin Automatically After Set Time
- Cron not sending wp-mail()
- WordPress crob job performance
- How does one programmatically manage posts from a external php script?
- When does `cron.daily` run?