mpp_deregister_type( $type )
Deregister an existing type.
Description
This function is used to deregister an existing type.
Parameters
$type (String) (Required) :- The unique identifier for type. Example:- “photo”, “audio”, “video” etc.
Returns
Boolean. True on success, false on failure
Examples
The code shows how we deregister the presentation type.
1 2 3 4 5 6 7 | function mpp_custom_deregister_presentation_type() { mpp_deregister_type( 'presentation' ); } add_action( 'mpp_init', 'mpp_custom_deregister_presentation_typ' ); |
Note:-
It must be called after a type has been registered. Calling it before the type was actually registered will have no effects. You can use it to remove core types too.
See also:-
Changelog
- Since 1.0.0
Source
medisapress/core/api/mpp-api.php