wordpress - Remove meta box from taxonomy editing screen -
wordpress - Remove meta box from taxonomy editing screen -
i've been adding/removing meta boxes code similar to:
function mw_remove_postboxes() { // remove metaboxes woocommerce screens remove_meta_box( 'wp-display-header', 'product', 'normal' ); remove_meta_box( 'wp-display-header', 'shop_order', 'normal' ); remove_meta_box( 'wp-display-header', 'shop_coupon', 'normal' ); remove_meta_box( 'wp-display-header', 'acf', 'normal' ); // remove metaboxes banners post type management remove_meta_box( 'wp-display-header', 'banners', 'normal' ); remove_meta_box( 'wpseo_meta', 'banners', 'normal' ); } add_action( 'do_meta_boxes' , 'mw_remove_postboxes' );
now have different need, need remove meta box edit-tags.php screen /edit-tags.php?action=edit&taxonomy=featured&tag_id=22&post_type=page
this page editing taxonomy. i've found ways remove taxonomy meta box custom post types, none case.
could help?
can done jquery:
$('h3').each(function() { if( $(this).text() === 'header' ) { // text after element: http://stackoverflow.com/a/6925135/1287812 var = $(this).parent().first().contents().filter(function() { homecoming this.nodetype == 3; }); a.remove(); $(this).hide(); $(this).next().hide(); } });
or using master lesson on removing hooks registered anonymous objects. pull function remove_anonymous_object_filter()
wpse , phone call like:
add_action( 'admin_init', 'kill_anonymous_example', 0 ); function kill_anonymous_example() { foreach ( get_taxonomies( array( 'show_ui' => true ) ) $_tax ) remove_anonymous_object_filter( "{$_tax}_edit_form", 'obenland_wp_display_header', // plugin instantiation on obenland_wpdh_instantiate(new obenland_wp_display_header) 'edit_form' ); }
wordpress
Comments
Post a Comment