Home Plugins menu item types
Menu Item Types logo

Menu Item Types

by Maxime Pertici on WordPress.org

Menu Item Types makes it easy to add and create custom menu item types to your navigation menus.

(1)

Menu Item Types makes it easy to add links to your archive pages, titles, items without URL, paragraphs or images to your navigation menus.
You can also easily override the templates and/or create your own custom elements.

Menu Item Types can be extended

You can create your own item type like this :

function register_my_custom_type(){

    $args = array(
        'slug'        => "my-custom-type",
        'icon'        => 'https://url-to-icon-file.svg',
        'label'       => __( 'My Custom Type', 'my-custom-type' ),
        'field-group' => 'path/to/acf/field-group-array.php',
        'render'      => 'path/to/render/my-custom-render.php',
        'callback'    => function(){
            // Use callback for customize your item
            // you can add filter on 'mitypes_nav_menu_link_attributes' if you need
        }
    );

    mitypes_register_type( $args );
}
add_filter( 'mitypes_init', 'register_my_custom_type' );

There are already additional plugins.
You can also create your own elements like these plugins do:

Customize the plugin

// Disable Post Type Archive Metabox
add_filter( 'mitypes_has_post_type_archive_metabox', '__return_false' ) ;

// Disable Buildin Item types
add_filter( 'mitypes_has_buildin_item_types', '__return_false' ) ;

// Mix Buildin and Plugin Item types in the metabox
add_filter( 'mitypes_mix_metabox_item_types', '__return_true' ) ;

// Filter Supported Item types
add_filter( 'mitypes_supported_types', function(){ return ['image']; } );

// Disable Nav Item Icons
add_filter( 'mitypes_nav_menu_items_has_icons', '__return_false' ) ;
Active installations30+
Weekly downloads
54+116.00%
Version1.6
Last updated1/16/2025
WordPress version5.8
Tested up to6.7.2
PHP version7.0
Tags
custommenuNav item