Vivian
asked 3 years ago

<?php add_filter( ‘show_admin_bar’, ‘__return_false’ , 1000 );

The above code shows the php code snippet I tried to use to remover WordPress register/login top bar from my site but so far it didn’t work. The code was included Into a WordPress plugin called “code snippets”. (And is intended to make changes to my themes functions.php file.

Please advise how I can get this code to work? 🙏

1 Answers
DominicStaff
answered 3 years ago

You can use the following code:

add_filter( 'show_admin_bar', '__return_false' , 1000 );
Powered by DW Question & Answer Pro