BP_REST_Account_Settings_Endpoint::bp_rest_is_current_component( boolean $is_current_component, string $component )
Unset group component while using this.
Description
- added for phpunit fix.
Parameters
- $is_current_component
-
(Required) Check is valid component.
- $component
-
(Required) Current component name.
Return
(boolean)
Source
File: bp-settings/classes/class-bp-rest-account-settings-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.