wp_nav_menu_taxonomy_meta_boxes

Creates meta boxes for any taxonomy menu item.

Description

wp_nav_menu_taxonomy_meta_boxes(); 

Usage

  1. if ( !function_exists( 'wp_nav_menu_taxonomy_meta_boxes' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/nav-menu.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_nav_menu_taxonomy_meta_boxes(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/nav-menu.php  
  1. function wp_nav_menu_taxonomy_meta_boxes() { 
  2. $taxonomies = get_taxonomies( array( 'show_in_nav_menus' => true ), 'object' ); 
  3.  
  4. if ( !$taxonomies ) 
  5. return; 
  6.  
  7. foreach ( $taxonomies as $tax ) { 
  8. /** This filter is documented in wp-admin/includes/nav-menu.php */ 
  9. if ( $tax ) { 
  10. $id = $tax->name; 
  11. add_meta_box( "add-{$id}", $tax->labels->name, 'wp_nav_menu_item_taxonomy_meta_box', 'nav-menus', 'side', 'default', $tax );