BP_Akismet::add_history_metabox( string $screen_action )
Adds a “History” meta box to the activity edit screen.
Description
Parameters
- $screen_action
-
(string) (Required) The type of screen that has been requested.
Source
File: bp-activity/classes/class-bp-akismet.php
function add_history_metabox( $screen_action ) { // Only proceed if we're on the edit screen. if ( 'edit' != $screen_action ) return; // Display meta box with a low priority (low position on screen by default). add_meta_box( 'bp_activity_history', __( 'Activity History', 'buddyboss' ), array( $this, 'history_metabox' ), get_current_screen()->id, 'normal', 'low' ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.6.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.