Removing the WordPress Admin Bar | iGetPro

Removing the WordPress Admin Bar | iGetPro

Hi Guys,

To remover the WordPress Admin bar from the top of all the pages you will need to do the following:

  1. Open your theme function.php page and add the following piece of code
  2. <?phpadd_filter(‘show_admin_bar’, ‘__return_false’);?>

This will remove the bar from all your wordpress pages.

Enjoy 🙂

Removing the Register link on WordPress Admin Page | iGetPro

Removing the Register link on WordPress Admin Page | iGetPro

Hi Guys,

So to remove the Register link from the WordPress Admin Login so that you can better control who registers through the main page you do the following:

  1. Open your wp-login.php page
  2. Find the following code:
  3. <?php if ( get_option( ‘users_can_register’ ) ) : ?>
    <!– <?php echo apply_filters( ‘register’, sprintf( ‘<a href=”%s”>%s</a>’, esc_url( wp_registration_url() ), __( ‘Register’ ) ) ); ?> |–>
    <?php endif; ?>
  4. Now comment out the middle line and that will remove the link from that page only.

Hope this helps.

Pin It on Pinterest