BP_REST_Components_Endpoint::deactivate_helper( string $component )

Deactivate component helper.

Description

Parameters

$component

(string) (Required) Component id.

Return

(array)

Source

File: bp-core/classes/class-bp-rest-components-endpoint.php

	protected function deactivate_helper( $component ) {

		$active_components =& buddypress()->active_components;

		// Set for the rest of the page load.
		unset( $active_components[ $component ] );

		// Save in the db.
		bp_update_option( 'bp-active-components', $active_components );

		return $this->get_component_info( $component );
	}

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.