Function : add_admin_menu()
This function let you add item to an already created menu with "create_admin_menu".
It accepts 2 parameters as follows:
first : (String) namespace
config : (Array) array of items with : title , href, icon as key
Notice : Multiple icon is not yet supported. Only the first item icon will be added to the menu. This function should also be called within tepas.php module or theme file.
<?php
create_admin_menu( 'custom-menu' , 'before' , 'dashboard' ); // Create menu
add_admin_menu( 'custom-menu' , array(
array(
'title' => __( 'Custom Menu' ),
'href' => '#',
'icon' => 'fa-star' // optional and use font-awesome icon
),
array(
'title' => __( 'Custom Menu 2' ),
'href' => '#',
'icon' => 'fa-dashboard' // optional and use font-awesome icon
)
) );
Updated less than a minute ago