Re: procedure for removing Admin Bar Sub Nav item
I’ve written a plugin (essentially your logo replacement code), and put it in the mu-plugins directory, but it doesn’t seem to be getting invoked?
Am I missing something obvious?
My file is called 2l2r-plugins.php and sits in the mu-plugins directory:
<?php
/*
Plugin Name: l2r adminbar logo
Plugin URI: http://www.21inspired.com
Description: replaces the adminbar logo
Version: 1.0
Author: Roger Coathup
Author URI: http://www.21thoughts.com
*/
function l2r_adminbar_logo() {
global $bp;
}
remove_action('bp-adminbar-logo','bp_adminbar_logo');
add_action('bp-adminbar-logo','l2r_adminbar_logo');
?>