mpp_deregister_gallery_view( $type, $view_id )
Deregister an existing gallery view.
Description
This function is used to deregister existing gallery views.
Parameters
$type (String) (Required) :- Unique identifier for media type
$view_id (String) (Required) :- Unique view id. Each view has unique id and a developer defines it while extending the MPP_Gallery_View class.
Returns
Boolean. true on success, false on failure.
Examples
The code removes the default view for photo gallery.
1 2 3 4 5 6 7 | function mpp_custom_deregister_default_gallery_view() { mpp_deregister_gallery_view( 'photo', 'default' ); } add_action( 'mpp_init', 'mpp_custom_deregister_default_gallery_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