• Hello all,

    I am currently coding a product import, and saving them as wordpress posts. I did use wp_insert_post(), but while using it, it took about 3 hours to only import a little over 300 products. I do not use wp_insert_post(), as the list of products could be of 1k up to even 20k products. I have taken the time to investigate how wordpress works, and how it saves the data, so I am inserting it directly, and the only thing i’m missing is, how to execute all the plugins, when a ‘post’ is saved.

    For example, google xml site map generator executes every time a post is saved, but I can’t seem to run it when i’m saving. Jetpack also runs, and saves some information, but can’t seem to run it either. I have tried running save_post(), (do_action(‘save_post’, postid, post) but it seems not to do the trick.

    Any suggestions?

    Thanks.

  • The topic ‘Function to run plugins’ is closed to new replies.