BP_REST_Components_Endpoint::component_exists( string $component )

Does the component exist?

Parameters Parameters


(string) (Required) Component.

Top ↑

Return Return


Source Source

File: bp-core/classes/class-bp-rest-components-endpoint.php

	protected function component_exists( $component ) {
		return in_array( $component, array_keys( bp_core_get_components() ), true );

Top ↑

Changelog Changelog

Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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