New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

mpp_get_media_class( $class = ”, $media = false )

Returns the css class list  of current media.

Usage

Parameters

This function takes class name and MPP_Media object or media id as parameter if being used outside the media loop. In the loop, it will return the class list of current media.

Returns

It returns the class list of current media.

Note:-

See MediaPress media loop on how to use it.

Changelog

  • Since 1.0.0