BP_REST_Components_Endpoint::component_exists( string $component )

Does the component exist?

Description

Parameters

$component

(string) (Required) Component.

Return

(bool)

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 );
	}

Changelog

Changelog
Version Description
0.1.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.