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

    (@wpallimport)

    I’m sorry but the import_id is currently not broadcasted by the pmxi_saved_post action. You could use a custom field to differentiate the imports. Simply set them up on the import template and query the field based on the post_id sent by the action.

    Thread Starter mihdan

    (@mihdan)

    Solution: use $_GET['ID']

    Plugin Author WP All Import

    (@wpallimport)

    Just to note that that is a solution that works for now, but as it is not supported it may break at any time. Accessing a value stored on a custom field is a consistent and supported way of differentiating imports.

    Thread Starter mihdan

    (@mihdan)

    What it is name of custom field?

    Plugin Author WP All Import

    (@wpallimport)

    It would be your own custom field, so you can name it whatever you want.

    To be clear this is a custom field you setup within the Custom Fields section of the import with a fixed value to identify your import. That custom field will be created for all posts that are imported through that import.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get import_id’ is closed to new replies.