Skip to content

How to set up cronjob for WP All Import

There are many customers trusting FastCron to run their WordPress plugin WP All Import.

The official documentation for setting up cronjob can be found at https://www.wpallimport.com/documentation/cron/

You need to set up 2 cronjobs: trigger and processing for each import.

Set up trigger cronjob

To set up the trigger cronjob:

  • Click + Cron Job
  • At URL to call field, enter the trigger URL:
https://example.com/wp-cron.php?import_key=YOUR_SECRET_KEY&import_id=YOUR_IMPORT_ID&action=trigger&rand=__random__
  • Select When to call: Every hour
  • Click Save cronjob

Expected script output:

{"status":200,"message":"#****** Cron job triggered."}

Set up processing cronjob

To set up the processing cronjob:

  • Click + Cron Job
  • At URL to call field, enter the processing URL:
https://example.com/wp-cron.php?import_key=YOUR_SECRET_KEY&import_id=YOUR_IMPORT_ID&action=processing&rand=__random__
  • Select When to call: Every 2 minutes
  • Click Save cronjob

Expected script output:

When the triggered import is processed completely:

{"status":200,"message":"Import #5 complete"}

When the previous triggered import was already processed, and there is nothing left to do:

{"status":403,"message":"Import #5 is not triggered. Request skipped."}