save_post() on Menu Save
As Mr. Peattie and Mr. Nowell pointed out, you should check the post type as one of the first things in your save_post function. Here’s couple of ways how to do it, add_action( ‘save_post’, ‘prefix_my_save_post_action’, 10, 3 ); function prefix_my_save_post_action( $post_id, $post, $update ) { // Check for single post type if ( ‘my_post_type’ !== … Read more