mpp_get_gallery_slug( $gallery = false )
Returns the slug of current gallery in the loop.
Usage
1 | <?php $slug = mpp_get_gallery_slug();?> |
Parameters
This function takes the MPP_Gallery object or gallery id as parameter if being used outside the gallery. In the loop, it will returns the slug of current gallery.
Returns
String – slug of the gallery.
Note:-
See MediaPress gallery loop on how to use it.
Changelog
- Since 1.0.0