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

WordPress: Increase Maximum Upload File Size

Depending on the web hosting company you choose and the package you select, each of you will see maximum file upload limit on your Media Uploader page in WordPress. For some it is as low as 2MB which is clearly… Baca selengkapnya WordPress: Increase Maximum Upload File Size

WordPress: Add Excerpts to Pages

In WordPress excerpts seem to be a feature exclusively for posts. But some users might want to use it for Pages as well. Even though WordPress supports Page excerpts internally as it has the same database field as the post… Baca selengkapnya WordPress: Add Excerpts to Pages

WordPress: Create Simple Admin Panel for Themes or Plugins

When we create our themes, we also need to create our own theme options on the admin panel. By customizing the theme options, it will make it easy for us, and most importantly, for our users to control the theme.… Baca selengkapnya WordPress: Create Simple Admin Panel for Themes or Plugins

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