BuddyDev

Search

mpp_gallery_html_attributes( $args = null )

Prints the attributes which should be used with an anchor linking to gallery permalink. Helps us to add extra attributes using filters.

Usage

Parameters

$args (array) (optional) – A list of parameters as descried below. All are optional.

  • class (string) – one or more css classes
  • id (string) – css id
  • title (string) – Link title attribute
  • data-mpp-context (string) – context of display. D not use it if you don’t understand the contexts of gallery.
  • gallery(int) – Id of the gallery

Returns

It does not return any value.

Note:-

See MediaPress gallery loop on how to use it.

Changelog

  • Since 1.0.0