How to Set up and Run the Xeroom Synch as a Cron Job

Modified on Mon, 25 Sep 2023 at 05:52 AM

Q:  Can you send me the cron line to call the function: xeroom_sync_schedule?

A: https://wpspeedmatters.com/external-cron-jobs-in-wordpress/ Gives can find a detailed way to setup and achievea  3rd party cron job on WordPress. Here is a short resume:

  • first, disable define('DISABLE_WP_CRON', true);
  • after that, go to the hosting dashboard cron job, create a new cron that executes every 1 or 2 minutes and add the URL wget -q -O - https://www.angelslocks.co.uk/wp-cron.php?doing_wp_cron >/dev/null 2>&1

The xeroom_sync_schedule is only available if something is in a queue to be synched with Xero. If not, the xeroom_sync_schedule cron will be removed. That's why you should implement the 3rd party cron jobs as above.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article