bp_core_admin_get_components( string $type = 'all' )

Return a list of component information.


Description 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 Parameters

$type

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

Default value: 'all'


Top ↑

Return Return

(array) Requested components' data.


Top ↑

Source 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 2.0.0
	 *
	 * @param array  $components Array of component information.
	 * @param string $type       Type of component list requested.
	 *                           Possible values include 'all', 'optional',
	 *                           'retired', 'required'.
	 */
	return apply_filters( 'bp_core_admin_get_components', $components, $type );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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