BP 1.5 add subnav item to Admin Options
-
Anyone have an example or tip for how to add a subnav item to the Admin Options dropdown in BP 1.5 via bp-custom ?
This adds a top link, but it needs to be a subnav item under Admin Options:
`
<?php
function add_delete_ban_user_link() {
global $bp;
if ( !is_super_admin() || bp_is_my_profile() || !$bp->displayed_user->id )
return false;
?>- <a href="displayed_user->domain . ‘admin/delete-ban-user/’, ‘delete-ban-user’ ) ?>” class=”confirm”>displayed_user->fullname ) ) ?>
<?php
}add_action( ‘bp_adminbar_menus’, ‘add_delete_ban_user_link’, 20 );
`I don’t want to use the WP_ADMIN_BAR
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.