WordPress.org

Ready to get started?Download WordPress

Forums

CSV Importer
Not firing save_post action (4 posts)

  1. Jason Judge
    Member
    Posted 1 year ago #

    On 0.3.7 of this module.

    I am importing into a custom post type, and have a custom save_post action to link the post to another post as it is saved. The action and the linking works fine when I create or update the custom post type manually.

    When importing, the records import, but the save_post action does not seem to fire. According to WP documentation, it is supposed to fire on imports as well as GUI-based updates.

    Is this have the plugin is supposed to work? Could it actually be my custom action that is not working properly? Or does the save_post action simply not fire on posts imported with this plugin?

    Otherwise, it works great :-)

    http://wordpress.org/extend/plugins/csv-importer/

  2. Jason Judge
    Member
    Posted 1 year ago #

    Looking again, the action may be firing, but one or more of the conditions it contains could be causing it to abort.

  3. Jason Judge
    Member
    Posted 1 year ago #

    I see what is happening now. The CSV importer will create the basic post first with all its core fields. That is the point at which the save_post action fires. *Then* it adds the custom field data to the post, which is too late for my code in the save_post action to see.

  4. Jason Judge
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.