bp_core_admin_get_components( string $type = 'all' )

Return a list of component information.

Description

We use this information both to build the markup for the admin screens, as well as to do some processing on settings data submitted from those screens.

Parameters

$type

(string) (Optional) component type to fetch. Default value is 'all', or 'optional', 'required'.

Default value: 'all'

Return

(array) Requested components' data.

Source

File: bp-core/admin/bp-core-admin-components.php

function bp_core_admin_get_components( $type = 'all' ) {
	$components = bp_core_get_components( $type );

	/**
	 * Filters the list of component information.
	 *
	 * @since BuddyPress 2.0.0
	 *
	 * @param array  $components Array of component information.
	 * @param string $type       Type of component list requested.
	 *                           Possible values include 'all', 'optional',
	 *                           'required'.
	 */
	return apply_filters( 'bp_core_admin_get_components', $components, $type );
}

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.