• Resolved mcdeth

    (@mcdeth)


    Hi, after import is finished, I use pmxi_after_xml_import to trigger export with wp_remote_get.

    I also have in functions.php:

    function wpae_continue_cron( $export_id, $exportObj ) {

    if ( $export_id == '22' ) {
    $cron_processing_url = 'wp-load.php?export_key=YR3xxxxxxiC&export_id=22&action=processing';

    header( "Location: " . $cron_processing_url . "" );
    }
    }
    add_action( 'pmxe_after_iteration', 'wpae_continue_cron', 10, 2 );

    But it’s stuck on “triggered with cron”

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

    (@wpallimport)

    Hi @mcdeth,

    Two things:

    • The “processing” script has to run at least once in order for the “pmxe_after_iteration” hook to fire and run the rest of the export.
    • You should put the full (including protocol and domain) processing URL in the $cron_processing_url variable.
Viewing 1 replies (of 1 total)

The topic ‘pmxe_after_iteration’ is closed to new replies.