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_media_class( $class=”, $media = false )

Prints the css class list of current media.

Usage

Parameters

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

Returns

It does not return any value.

Note:-

See MediaPress media loop on how to use it.

Changelog

  • Since 1.0.0