BuddyDev

Search

mpp_get_gallery_status( $gallery = false )

Returns the status of current gallery in the loop. It can be one of the status registered e.g “public”, “private” etc

Usage

Parameters

This function takes the MPP_Gallery object or gallery id as parameter if being used outside the gallery loop. In the loop, it will return the status of current gallery.

Returns

String – Status of current gallery. Possible values are “public”, “private”, “loggedin” etc.

Note:-

See MediaPress gallery loop on how to use it.

Changelog

  • Since 1.0.0