Creating cron function

Setting Up cron within wordpress Using standard recurrence values Standard recurrence values are ‘hourly’, ‘daily’ and ‘twicedaily’. Using your own recurrence values If you want something different from the standard recurrence values you can add the below to define them: Configuring WordPress to use your setup Run this once to setup with the new configuration […]

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