Error adding menu to Vendor Dashboard
-
Hello, i’m developing a addon for yith Multi Vendor but i’m having problems creating new menus inside Vendor Dashboard:
I trying to use this code:
function my_vendor_menu() {
add_menu_page( ‘My menu’,
‘My menu’,
‘yith_vendor’,
‘my_slug’,
‘function_form’,
‘dashicons-admin-users’,
’65’
);
}
add_action( ‘admin_menu’,’my_vendor_menu’ , 5);But menu is not displayed inside Vendor Dashboard, if i replace “yith_vendor” with “Administrator”, menu is displayed inside Admin Dashboard ok. Y tried also using “manage_options” , with same result.
Thanks in advance!
- The topic ‘Error adding menu to Vendor Dashboard’ is closed to new replies.