mpp_deregister_media_view ( $type, $storage )
Deregister an existing media view.
Description
This function is used to deregister existing media views.
Parameters
$type (String) (Required) :- Unique identifier for media type e.g “photo”, “video” etc.
$storage (String) (Required) :- Unique identifier for storage manager e.g “default”, “local” etc.
Returns
Boolean. True on success, false on failure.
Examples
The code shows how we deregister the default view for video.
1 2 3 4 5 6 7 | function mpp_custom_deregister_video_default_view() { mpp_deregister_media_view( 'audio', 'default' ); } add_action( 'mpp_init', 'mpp_custom_deregister_video_default_view' ); |
Note:-
It must be used after a view has been registered.
See also:-
Changelog
- Since 1.0.0
Source
medisapress/core/api/mpp-api.php