Save_post on specific post

[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]
1 Comment
  1. 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”

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer