Skip to content

Instantly share code, notes, and snippets.

@taricco
Created January 27, 2024 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taricco/fbf81ef6f4d9a63bbdf134675c725b0c to your computer and use it in GitHub Desktop.
Save taricco/fbf81ef6f4d9a63bbdf134675c725b0c to your computer and use it in GitHub Desktop.
/*** Hide default taxonomy panels for Match CPT taxonomies
–––––––––––––––––––––––––––––––––––––––––––––––––– ***/
function hide_match_taxonomy_metaboxes() {
echo '
<style type="text/css">
#custom_match-status,
.components-panel__body:has(>.css-1n451hs.e19lxcc00) {
display: none;
}
</style>
';
}
add_action( 'admin_enqueue_scripts', 'hide_match_taxonomy_metaboxes' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment