Creating cron function

Setting Up cron within wordpress Standard recurrence values are ‘hourly’, ‘daily’ and ‘twicedaily’, or you can create your own as shown below. Configuring WordPress to use your setup Run this once to setup with the new configuration Using with a plugin Use the wp_schedule_event() with your plugin activation hook register_activation_hook(). Ensure your also use your […]

Read More

System triggered WP-Cron

You can disable the default triggering of wp-cron.php for any page load and instead have it triggered using the system cron. This is based on the nifty guide here: https://tommcfarlin.com/wordpress-cron-jobs/ Disable defult wordpress cron Stop wp-cron.php being called for every page load (this is actually not a bad thing to do for heavily used sites). […]

Read More

.WordPress Cron General

WP-Cron is slightly different to a system cron in that: WP-Cron uses intervals – whereas a system cron is triggered at specific times WP-Cron only works when a page on the site is loaded – if there is no activity on the site then WP-Cron tasks will not run until there next is a vistor. […]

Read More