BuddyDev

Search

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.

 

Note:-

It must be used after a view has been registered.

See also:-

mpp_register_gallery_view

 Changelog

  • Since 1.0.0

Source

medisapress/core/api/mpp-api.php