function wp_nav_menu_taxonomy_meta_boxes() {}

Creates metaboxes for any taxonomy menu item.

Defined filters

  • nav_menu_meta_box_object
    apply_filters( 'nav_menu_meta_box_object', $tax )

Source code

function wp_nav_menu_taxonomy_meta_boxes() {

	$taxonomies = get_taxonomies( array( 'show_in_nav_menus' => true ), 'object' );

	if ( !$taxonomies )


	foreach ( $taxonomies as $tax ) {

		$tax = apply_filters( 'nav_menu_meta_box_object', $tax );

		if ( $tax ) {

			$id = $tax->name;

			add_meta_box( "add-{$id}", $tax->labels->name, 'wp_nav_menu_item_taxonomy_meta_box', 'nav-menus', 'side', 'default', $tax );




No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: