Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

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