BuddyDev

Search

mpp_get_gallery_html_attributes( $args = null )

Returns 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

String – All generated link attributes.

Note:-

See MediaPress gallery loop on how to use it.

Changelog

  • Since 1.0.0

 

Subscribe