• Resolved alexpetrov

    (@alexpetrov)


    hi, I don’t understand how cron works. I set the task Trigger Execution Script URL and Script URL and what should be next? I need to do to export every day and saved automatically in the site root. Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @alexpetrov

    I set the task Trigger Execution Script URL and Script URL and what should be next?

    You’ll need to set up cron jobs for both the trigger script and the processing script. Please see the instructions here: https://www.wpallimport.com/documentation/recurring/cron/ (these are for WP All Import, but the steps are identical for WP All Export).

    I need to do to export every day and saved automatically in the site root.

    The file can be stored in a couple of locations, based on the “Randomized folder names” setting via All Export > Settings:

    If enabled, exported files and temporary files will be saved in a folder with a randomized name in /wp-content/uploads/wpallexport.

    If disabled, exported files will be saved in the Media Library.

    If you need to move the file to a different location after the export completes, you can use this hook: https://github.com/soflyy/wp-all-import-action-reference/blob/master/all-export/pmxe_after_export.php. Here’s an example snippet showing how to find the file: https://paste.ee/p/p9B9c.

    Thread Starter alexpetrov

    (@alexpetrov)

    where to paste the code that you posted?

    Plugin Author WP All Import

    (@wpallimport)

    Hi @alexpetrov

    You can put this code in the Function Editor via All Export -> Settings. Keep in mind, though, that this is just example code and it only shows how to find the export file – it doesn’t actually move the file.

    Unfortunately the code example you provided is incomplete and won’t work as it doesn’t include the all important $export object so I fixed it here:

    https://paste.ee/p/gTdxj

    The fixed version passes 2 arguments and includes the missing $exportObj object so the path can be extracted.

    With a single argument of $export_id all you ever got was the wp_uploads path

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘crontab problems’ is closed to new replies.