Is there a way to know when a page has been updated and do some action only once?
You can do something like this. add_action(‘publish_page’, ‘bt_publish_post’, 10, 2); function bt_publish_post ($post_id, $post) { // our bt_page_status codes will indicate one of three thing // if empty than we know that page is published // if 1 we know that page was updated for the first time // if 2 we know that page … Read more