Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove Taxonomy Genesis Metaboxes
<?php
/**
* Remove the term meta added by the Genesis Framework.
*
* @author Joshua David Nelson, josh@joshuadnelson.com
*/
add_action( 'admin_init', 'jdn_remove_genesis_term_meta', 11 ); // hook in after genesis adds the tax meta
function jdn_remove_genesis_term_meta() {
$taxonomy = 'category'; // change this to your custom taxonomy
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_archive_options', 10 );
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_seo_options', 10 );
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_layout_options', 10 );
// OR, for multiple taxonomies
$taxonomies = array( 'category', 'post_tag' );
foreach( $taxonomies as $taxonomy ) {
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_archive_options', 10 );
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_seo_options', 10 );
remove_action( "{$taxonomy}_edit_form", 'genesis_taxonomy_layout_options', 10 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.