BP_REST_Components_Endpoint::component_exists( string $component )

Does the component exist?


Description Description


Parameters Parameters

$component

(Required) Component.


Top ↑

Return Return

(bool)


Top ↑

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

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.