Advertisement
websupporter

Remove Admin Bar in WordPress

May 7th, 2015
3,093
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. add_action( 'user_register', 'remove_admin_bar', 10, 1 );
  3. function remove_admin_bar( $user_id ) {
  4.     update_user_meta( $user_id, 'show_admin_bar_front', 'false' );
  5. }
  6. ?>
Advertisement
RAW Paste Data Copied
Advertisement