CSV Importer
Not firing save_post action (4 posts)

  1. Jason Judge
    Posted 3 years 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 :-)


  2. Jason Judge
    Posted 3 years 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
    Posted 3 years 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
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CSV Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.