latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Cannot stop WordPress toolbar from appearing

Home Forums Community Forum Cannot stop WordPress toolbar from appearing

This topic contains 2 replies, has 2 voices. Last updated by  Mark Davies 4 years, 9 months ago.

Topic Author Topic
Posted: Saturday Mar 31st, 2012 at 4:19 am #9651
Mark Davies
Username: mark696

Hi guys,

Please could anyone tell me how to automatically disable the WordPress top toolbar for new members. I seem to have to go to their “User” page in wp-admin to disable it manually each time.

Does anybody know exactly where to find the code to leave the checkbox unchecked when a new member signs up.?

Thanks,

Mark.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Saturday Mar 31st, 2012 at 6:34 am #9655
DrByte
Username: DrByte

Add this to your function.php file, right on top

<?php
function my_function_admin_bar($content) {
    return ( current_user_can("administrator") ) ? $content : false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');
?>

Sam

Posted: Saturday Mar 31st, 2012 at 9:46 am #9661
Mark Davies
Username: mark696

Hi Sam,

I have installed your code snippet and it works perfectly. Thank you for taking the time to help me.

Mark.

Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.