BP_REST_Components_Endpoint::deactivate_helper( string $component )

Deactivate component helper.


Description Description


Parameters Parameters

$component

(Required) Component id.


Top ↑

Return Return

(array)


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.