BP_REST_Components_Endpoint::verify_component_status( string $name )
Verify Component Status.
Description
Parameters
- $name
-
(Required) Component name.
Return
(string)
Source
File: bp-core/classes/class-bp-rest-components-endpoint.php
protected function verify_component_status( $name ) { if ( 'core' === $name || bp_is_active( $name ) ) { return __( 'active', 'buddyboss' ); } return __( 'inactive', 'buddyboss' ); }
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.