[ad_1]
Looking for a way to trigger a function when a specific post (just a single ID) is saved/updated.
I believe the save\_post hook will do it but unsure how to selectively use save\_post for a specific post save.
Any ideas? Thanks!
[ad_2]Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
The filter provides the ID which you can use use for the condition. PHP Knowledge required! [https://developer.wordpress.org/reference/hooks/save_post/])
Have a look at the examples after “User Contributed Notes”