menu

WordPress: add_menu_page and add_submenu_page

function theme_options_panel(){ add_menu_page(‘Theme page title’, ‘Theme menu label’, ‘manage_options’, ‘theme-options’, ‘wps_theme_func’); add_submenu_page( ‘theme-options’, ‘Settings page title’, ‘Settings menu label’, ‘manage_options’, ‘theme-op-settings’, ‘wps_theme_func_settings’); add_submenu_page( ‘theme-options’, ‘FAQ page title’, ‘FAQ menu label’, ‘manage_options’, ‘theme-op-faq’, ‘wps_theme_func_faq’); } add_action(‘admin_menu’, ‘theme_options_panel’); function wps_theme_func(){ echo ‘<div… Baca selengkapnya WordPress: add_menu_page and add_submenu_page

Mac: Clock and Calendar in Menu Bar

MagiCal is a FREE menu-based clock and calendar. It features a huge range of configuration options for how the time and date are displayed, and can operate either in conjunction with, or as a replacement for the built in system… Baca selengkapnya Mac: Clock and Calendar in Menu Bar

Add Setting Page To Custom Post Type

add_action(‘admin_menu’ , ‘add_settings_page’); function add_settings_page() { add_submenu_page(‘edit.php?post_type=custom’, ‘Custom Post Type Admin’, ‘Custom Settings’, ‘edit_posts’, basename(__FILE__), ‘setting_page’); } edit.php?post_type=custom Here where you want to add custom menu to your custom post type. Change custom to your custom post type slug Custom… Baca selengkapnya Add Setting Page To Custom Post Type

Scroll to Top