BP_Akismet::add_history_metabox( string $screen_action )

Adds a “History” meta box to the activity edit screen.


Parameters Parameters

$screen_action

(string) (Required) The type of screen that has been requested.


Source 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', 'buddypress' ), array( $this, 'history_metabox' ), get_current_screen()->id, 'normal', 'low' );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.