Removing the BuddyPress Admin Bar
I recently started developing a BuddyPress Theme/Plugin using the WordPress 3.4.2 and BuddyPress 1.6.1.
To remove the Admin Bar up at the top, you can create a file called bp-custom.php which gets thrown into wp-content/plugins. The nice thing about bp-custom.php is that you don’t need to activate it or add any special code to make it run as long as BuddyPress is activated.
So to remove the Admin Bar create bp-custom.php and add the following code:
<?php
function remove_bp_adminbar(){
show_admin_bar(false);
}
add_action('after_setup_theme','remove_bp_adminbar');
?>
After updating and refreshing the page, your admin bar should be removed. But, be careful because this can cause issues if you don’t have alternative links to log out in place.
Tags
AES Betweeness Bonacich BuddyPress C Centrality Chaos Closeness Cosine Similarity CUDA Delayed Henon Map Embedding Method Encryption Freeman's Degree Centrality Henon Map HTML Integer Programming Invertible Maps Javascript Lorenz Attractor Lyapunov Spectrum MS SQL Multi-objective optimization Multidimensional Scaling Neural Network ODE Optimization Particle Swarm Optimization PHP Platform Probability Python Rastrigin function Rijndael Rossler Attractor Script Library Sensitivities Social Network Analysis Subgraph Centrality Support Vector Machines Support Vector Regression Time Series VB.net Wordpress





