Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
While remove_meta_box( 'wpseo_meta', 'exam', 'normal') works great for post types, there is no clean way to hide Yoast's metabox on a taxonomy in my plugin. Even a filter would work, just something to make my non-public taxonomy not show the Yoast metabox out of the box.
why you think the feature request is something we should consider for the Yoast SEO plugins?
Because solutions like this Stack Overflow answer work great for post types, but there is no substitute for taxonomies.
Additional context
I would love to just unhook the action: add_action( sanitize_text_field( $this->taxonomy ) . '_edit_form', array( $this, 'term_metabox' ), 90, 1 ); -- Unfortunately the class is anonymous so it requires significant hacky tactics to get around, or modifying the user's Yoast settings to disable it there.
But even a simple solution would work like (class-taxonomy.php -> show_metabox):
if ( !apply_filters( 'yoast_display_taxonomy_metabox', true, $this->taxonomy ) ) return false;
Which would make it easy to disable the metabox inside of a plugin.
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
While
remove_meta_box( 'wpseo_meta', 'exam', 'normal')works great for post types, there is no clean way to hide Yoast's metabox on a taxonomy in my plugin. Even a filter would work, just something to make my non-public taxonomy not show the Yoast metabox out of the box.why you think the feature request is something we should consider for the Yoast SEO plugins?
Because solutions like this Stack Overflow answer work great for post types, but there is no substitute for taxonomies.
Additional context
I would love to just unhook the action:
add_action( sanitize_text_field( $this->taxonomy ) . '_edit_form', array( $this, 'term_metabox' ), 90, 1 );-- Unfortunately the class is anonymous so it requires significant hacky tactics to get around, or modifying the user's Yoast settings to disable it there.But even a simple solution would work like (class-taxonomy.php -> show_metabox):
if ( !apply_filters( 'yoast_display_taxonomy_metabox', true, $this->taxonomy ) ) return false;Which would make it easy to disable the metabox inside of a plugin.