I was looking in wp_options table but there is nothing like that eventhough I have set my cron tasks like:
add_action('init', function() { if ( !wp_next_scheduled('my_awesome_cron_hook') ) { wp_schedule_event(time(), 'hourly', 'my_awesome_cron_hook'); } });
Or is it stored in some txt file in wordpress?
View and Control WordPress Cron System Upon activation, you need to visit Tools » Cron Events page to control cron settings. You will see a list of all cron events scheduled to run on your site using the WordPress cron system. In the first column, you will see the name of the hook that runs the cron.
WP-Cron works by checking, on every page load, a list of scheduled tasks to see what needs to be run. Any tasks due to run will be called during that page load. WP-Cron does not run constantly as the system cron does; it is only triggered on page load.
WordPress uses a wp-cron. php file, located in the root directory of your website, as a virtual cron job. It's a scheduled task to automate processes like publishing scheduled posts, checking for plugin or theme updates, sending email notifications, etc.
It's stored in the database inside wp_options
under the option_name
cron
.
You can get the array with: _get_cron_array()
or get_option('cron')
.
See: http://core.trac.wordpress.org/browser/trunk/wp-includes/cron.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With