Toggle Side Panel
BuddyBoss Resources
  • Knowledge Base
    • All Articles
    • BuddyBoss Platform
    • BuddyBoss Theme
    • BuddyBoss App
    • Integrations
    • Advanced Setup
    • Troubleshooting
    • Release Notes
      • BuddyBoss Platform
      • BuddyBoss Platform Pro
      • BuddyBoss Theme
      • BuddyBoss App
      • BuddyBoss App Plugin
      • Other Products
  • Developers
    • Developer Tutorials
      • Web Development
      • App Development
    • Code Reference
      • Functions
      • Hooks
      • Classes
      • Methods
      • Commands
      • App Codex
    • REST API
      • BuddyBoss Platform
      • BuddyBoss App
    • Font Cheatsheet
    • Github Project
  • Roadmap
  • Go to BuddyBoss
More options
    Contact Support
    Filter
    • Knowledge Base
      • All Articles
      • BuddyBoss Platform
      • BuddyBoss Theme
      • BuddyBoss App
      • Integrations
      • Advanced Setup
      • Troubleshooting
      • Release Notes
        • BuddyBoss Platform
        • BuddyBoss Platform Pro
        • BuddyBoss Theme
        • BuddyBoss App
        • BuddyBoss App Plugin
        • Other Products
    • Developers
      • Developer Tutorials
        • Web Development
        • App Development
      • Code Reference
        • Functions
        • Hooks
        • Classes
        • Methods
        • Commands
        • App Codex
      • REST API
        • BuddyBoss Platform
        • BuddyBoss App
      • Font Cheatsheet
      • Github Project
    • Roadmap
    • Go to BuddyBoss
    Filter
    Close search
    Filter

    Contents

    • Description
    • Parameters
    • Return
    • Source
    Code Reference Classes BP_REST_Account_Settings_Endpoint BP_REST_Account_Settings_Endpoint::bp_rest_is_current_component()

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

    Expand full source code Collapse full source code

    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.

    © 2025 • BuddyBoss