Can’t get post_updated hook to work
If it doesn’t work you can try to use a wp_insert_post action: function insert_post_hook($post_id, $post) { if ($post->post_date != $post->post_modified) { // This post is being updated! } else { // This post is being created! } } add_action( ‘wp_insert_post’, ‘insert_post_hook’, 10, 2 ); If you want to see the latest version you could enable … Read more