BP_REST_Members_Details_Endpoint::bp_rest_is_current_component( boolean $is_current_component, string $component )

Unset group component while using this – added for phpunit fix.

Description

Parameters

$is_current_component

(boolean) (Required) Check is valid component.

$component

(string) (Required) Current component name.

Return

(boolean)

Source

File: bp-members/classes/class-bp-rest-members-details-endpoint.php

	public function bp_rest_is_current_component( $is_current_component, $component ) {
		if ( 'groups' !== $component ) {
			return $is_current_component;
		}
		return false;
	}

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.