mpp_get_gallery_creator_id( $gallery = false )
Returns the Id of the user who created current gallery.
<?php $user_id = mpp_get_gallery_creator_id();?>
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 id of the users who created current gallery.
int – Numeric id of the user who created this gallery.
See MediaPress gallery loop on how to use it.
- Since 1.0.0