• Resolved deepakverma31

    (@deepakverma31)


    This can be a wiered question. So teh scenario is:

    – I am saving bunch of post meta ( say 10 fields ) in my custom post type.
    – Now I want to hook my function to run on update post button but the catch is:
    — My function need the post meta value i just entered in my post to calculate and return value which will also be saved in 11th post meta field.

    what should be the best way: ajax or can i make this function to run once post meta is saved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter deepakverma31

    (@deepakverma31)

    thank dt. Yes this has solved my problem by using action hook

    I have the same problem, but didn`t quite get the solution.

    the save_post hook runs before wordpress does its native save right? I have an acf repeater field with lots of post data i don`t want to work through, just want to get the saved postmeta and put it in a seperate table (for rseraching it more efficiently on the frontend.

    So does i run after the wordpress native save, and if so can you show me the code on how to do it (didne`t get clear to me on the save_post page)

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    I am now closing this 8 month old, resolved, topic as it references an older version of WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hook a function to run after save post is finished running’ is closed to new replies.