mpp_get_media_id( $media = false )
Return the Id of current media.
Usage
1 | <?php $media_id = mpp_get_media_id(); ?> |
Parameters
This function takes the MPP_Media object or media id as parameter if being used outside the loop. If used inside the loop, it will return id of current media.
Returns
int-numeric id of media.
Note:-
See MediaPress media loop on how to use it.
Changelog
- Since 1.0.0