How to use the post_title of custom post type as taxonomy
Is there a hook that actually only fires when a post gets updated and where I can get $post_before and $post_after? You’re probably looking for the post_updated hook. Usage add_action( ‘post_updated’, ‘wpse_264720_post_updated’, 10, 3 ); function wpse_264720_post_updated( $post_ID, $post_after, $post_before ) { //* Bail if this is an autosave if( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE … Read more