function

WordPress: Open “Visit site” in a new window

add_action( ‘admin_bar_menu’, ‘customize_my_wp_admin_bar’, 80 ); function customize_my_wp_admin_bar( $wp_admin_bar ) { //Get a reference to the view-site node to modify. $node = $wp_admin_bar->get_node(‘view-site’); //Change target $node->meta[‘target’] = ‘_blank’; //Update Node. $wp_admin_bar->add_node($node); } To change any other item in the menu bar… Baca selengkapnya WordPress: Open “Visit site” in a new window

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