wp_nav_menu_taxonomy_meta_boxes example

function wp_nav_menu_setup() {
    // Register meta boxes.     wp_nav_menu_post_type_meta_boxes();
    add_meta_box(
        'add-custom-links',
        __( 'Custom Links' ),
        'wp_nav_menu_item_link_meta_box',
        'nav-menus',
        'side',
        'default'
    );
    wp_nav_menu_taxonomy_meta_boxes();

    // Register advanced menu items (columns).     add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns' );

    // If first time editing, disable advanced items by default.     if ( false === get_user_option( 'managenav-menuscolumnshidden' ) ) {
        $user = wp_get_current_user();
        update_user_meta(
            $user->ID,
            'managenav-menuscolumnshidden',
            array(
                
Home | Imprint | This part of the site doesn't use cookies.