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
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
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.