bp_invites_add_admin_menu()
Register the Invites component in BuddyBoss > Invites admin screen.
Description
Source
File: bp-invites/bp-invites-admin.php
function bp_invites_add_admin_menu() {
if ( is_network_admin() && bp_is_network_activated() ) {
$invites_url = get_admin_url( bp_get_root_blog_id(), 'edit.php?post_type=' . bp_get_invite_post_type() );
} else {
$invites_url = 'edit.php?post_type=' . bp_get_invite_post_type();
}
// Add our screen.
$hook = add_submenu_page(
'buddyboss-platform',
__( 'Invites', 'buddyboss' ),
__( 'Invites', 'buddyboss' ),
'bp_moderate',
$invites_url,
''
);
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.