mpp_deregister_component ( $key )
Deregister an existing component.
Description
This function is used to deregister an existing component. It must be called after a component was registered, calling it before that will have no effects.
Parameters
$Key (String) (Required) :- A unique identifier for the component(which we used while registering a component)
Returns
boolean:- false on failure, true on success.
Examples
The code shows how we deregister the groups component.
1 2 3 4 5 6 7 | function mpp_custom_deregister_component() { mpp_deregister_component( 'groups'); } add_action( 'mpp_init', 'mpp_custom_deregister_component' ); |
Note:-
It must be used after component got registered. Most suitable action is “mpp_init”
See also:-
Changelog
- Since 1.0.0
Source
medisapress/core/api/mpp-api.php