Updated answer for Yoast SEO Version: 7.0.2
This will remove both seo score filter and readability filter from posts list edit page in WordPress admin.
add_action( 'admin_init', 'bb_remove_yoast_seo_admin_filters', 20 );
function bb_remove_yoast_seo_admin_filters() {
global $wpseo_meta_columns ;
if ( $wpseo_meta_columns ) {
remove_action( 'restrict_manage_posts', array( $wpseo_meta_columns , 'posts_filter_dropdown' ) );
remove_action( 'restrict_manage_posts', array( $wpseo_meta_columns , 'posts_filter_dropdown_readability' ) );
}
}
Update 18/03/2020 version 13.3
2 options currently work with current latest version 13.3
Option 1:
If you are working on a headless CMS or fetch the data via custom endpoints and don't need the CPT to be "public"
You can set post_type $args value "public" => false
and SEO meta fields and columns filters fields won't appear.
Option 2:
Use the filter wpseo_accessible_post_types
function bb_disable_yoast_seo_metabox( $post_types ) {
unset( $post_types['custom_post_type'] );
return $post_types;
}
add_filter( 'wpseo_accessible_post_types', 'bb_disable_yoast_seo_metabox' );