BP_Group_Extension::_meta_box_display_callback()

Create the Dashboard meta box for this extension.

Description

Source

File: bp-groups/classes/class-bp-group-extension.php

1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
public function _meta_box_display_callback() {
    $group_id = isset( $_GET['gid'] ) ? (int) $_GET['gid'] : 0;
    $screen   = $this->screens['admin'];
 
    $extension_slug = $this->slug;
    $callback = function() use ( $extension_slug, $group_id ) {
        do_action( 'bp_groups_admin_meta_box_content_' . $extension_slug, $group_id );
    };
 
    add_meta_box(
        $screen['slug'],
        $screen['name'],
        $callback,
        get_current_screen()->id,
        $screen['metabox_context'],
        $screen['metabox_priority']
    );
}

Changelog

Changelog
Version Description
BuddyPress 1.7.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.