How to remove the top bar in WordPress for logged-in users

H

Edit the functions.php file in within your theme and add the following line to it

add_filter( 'show_admin_bar', '__return_false' );

This will remove the top bar when a user is logged-in.

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me