bp_invites_add_admin_menu()

Register the Invites component in BuddyBoss > Invites admin screen.

Description

Source

File: bp-invites/bp-invites-admin.php

414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
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

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.