by

Remove WordPress Logo & admin bar…

December 15, 2018 in Uncategorized

/**

  • add_filter(‘show_admin_bar’, ‘__return_false’);
  • /

/* Disable WordPress Admin Bar for all users but admins. / / show_admin_bar(false); */

add_filter('show_admin_bar', '__return_false');

/**

  • add_action( 'admin_bar_menu', 'remove_wp_logo', 999 );
  • function remove_wp_logo( $wp_admin_bar ) {
  • $wp_admin_bar->remove_node( 'wp-logo' );
  • }
    */
    add_action( 'admin_bar_menu', 'remove_wp_logo', 999 ); function remove_wp_logo( $wp_admin_bar ) { $wp_admin_bar->remove_node( 'wp-logo' ); }

Comments are closed.