bp_activity_add_admin_menu()

Register the Activity component admin screen.

Description

Source

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

function bp_activity_add_admin_menu() {

	// Add our screen.
	$hook = add_submenu_page(
		'buddyboss-platform',
		__( 'Activity', 'buddyboss' ),
		__( 'Activity', 'buddyboss' ),
		'bp_moderate',
		'bp-activity',
		'bp_activity_admin'
	);

	// Hook into early actions to load custom CSS and our init handler.
	add_action( "load-$hook", 'bp_activity_admin_load' );
}

Changelog

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.