RBA Cash Rate: 4.35% · 1AUD = 0.67 USD · Inflation: 4.1%  
Leading Digital Marketing Experts | 1300 235 433 | Aggregation Enquires Welcome | Book Appointment
Example Interest Rates: Home Loan Variable: 5.20% (5.24%*) • Home Loan Fixed: 5.48% (6.24%*) • Fixed: 5.48% (6.24%*) • Variable: 5.20% (5.24%*) • Investment IO: 5.63% (6.88%*) • Investment PI: 5.49% (6.32%*)

Disable Admin Bar on Front Page To Subscribers

If you have a membership-based website and don't want the admin bar at the top of the page, use this action to remove it.

Copy and paste the WordPress function into your theme's functions.php file or, if you sensibly have one installed, your custom functions plugin.

1
<?php 
2
/*
3
 Disable admin bar on the front-end of your website for subscribers.
4
 http://www.beliefmedia.com/code/wp-snippets/disable-admin-bar
5
*/
6
 
7
8
  if (! current_user_can('edit_posts')) {
9
    add_filter('show_admin_bar', '__return_false');
10
  }
11
}
12
add_action('after_setup_theme', 'beliefmedia_disable_admin_bar' );

Download our 650-page guide on Finance Marketing. We'll show you exactly how we generate Billions in volume for our clients.

  AUS Eastern Standard Time (Washington)

  Want to have a chat?
 

Like this article?

Share on Facebook
Share on Twitter
Share on Linkdin
Share on Pinterest

Leave a comment