You appear to be a bot. Output may be restricted
Description
Lazy implementation for "oik-types" admin menuNote: You can register multiple sub-pages with the same page name. This means that more than one callback function will be called when the page is loaded. I'm not sure of the value of this. Note: To avoid getting the oik menu duplicated the name of the first submenu item needs to be the same as the main menu item. see http://geekpreneur.blogspot.com/2009/07/getting-unwanted-sub-menu-item-in.html In most "normal" WP menus the main menu gives you the full list
Usage
oikcpt_lazy_admin_menu();
Parameters
Returns
voidSource
File name: oik-types/admin/oik-types-admin.phpLines:
1 to 9 of 9
function oikcpt_lazy_admin_menu() { add_menu_page( __('[oik] Types', 'oik'), __('Types', 'oik'), 'manage_options', 'oik_types_menu', 'oik_types_menu', 'div' ); add_submenu_page( 'oik_types_menu', __( 'Summary', 'oik-types'), __( 'Summary', 'oik-types'), 'manage_options', 'oik_types_menu', 'oik_types_menu'); add_submenu_page( 'oik_types_menu', __( 'oik types', 'oik-types'), __( 'Types', 'oik-types'), 'manage_options', 'oik_types', 'oikcpt_types_do_page'); add_submenu_page( 'oik_types_menu', __( 'oik fields', 'oik-types'), __('Fields', 'oik-types'), 'manage_options', 'oik_fields', 'oikfie_fields_do_page' ); add_submenu_page( 'oik_types_menu', __( 'oik taxonomies', 'oik-types'), __('Taxonomies', 'oik-types'), 'manage_options', 'oik_taxonomies', 'oiktax_taxonomies_do_page' ); add_submenu_page( 'oik_types_menu', __( 'oik fields to types', 'oik-types'), __('Fields to types', 'oik-types'), 'manage_options', 'oik_f2t', 'oikf2t_do_page' ); add_submenu_page( 'oik_types_menu', __( 'oik taxonomies to types', 'oik-types'), __('Taxonomies to types', 'oik-types'), 'manage_options', 'oik_x2t', 'oikx2t_do_page' ); }View on GitHub