wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



post_gallery › Filtr WordPress Hooks

Od4.2.0
Przestarzałyn/a
› apply_filters( 'post_gallery', '', $attr, $instance )
Parametry: (3)
  • () output The gallery output. Default empty.
    Wymagane: Tak
  • () attr Attributes of the gallery shortcode.
    Wymagane: Tak
  • () instance Unique numeric ID of this gallery shortcode instance.
    Wymagane: Tak
Zobacz:
  • gallery_shortcode()
Zdefiniowane na:
Codex:

Filters the default gallery shortcode output.

If the filtered output isn't empty, it will be used instead of generating the default gallery template.




Źródło

$output = apply_filters( 'post_gallery', '', $attr, $instance );