mpp_get_media_path( $type = ”, $media = false )
Returns the absolute path of current media.
Usage
1 | <?php $media_path = mpp_get_media_path(); ?> |
Parameters
This function takes media type and MPP_Media object or media id as parameter if being used outside the media loop. In the loop, it will return the absolute path of current media.
Returns
It returns the absolute path of current media.
Note:-
See MediaPress media loop on how to use it.
Changelog
- Since 1.0.0