Advertisement
Fany_VanDaal

Odstranění odkazů z admin baru

May 23rd, 2019
208
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //odstranění z admin bar
  2. function remove_admin_bar_links() {
  3. global $wp_admin_bar;
  4. $wp_admin_bar->remove_menu('wp-logo');
  5. $wp_admin_bar->remove_menu('new-content');
  6. $wp_admin_bar->remove_menu('my-account');
  7. $wp_admin_bar->remove_menu('my-sites');
  8. $wp_admin_bar->remove_menu('comments');
  9. $wp_admin_bar->remove_menu('languages');
  10. }
  11. add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );
Advertisement
RAW Paste Data Copied
Advertisement