WPDev.one
Core Function
View Source on Trac ↗

gallery_shortcode()

gallery_shortcode( mixed $attr )

Builds the Gallery shortcode output.

Parameters 1 required

Name / Type Description
array

$attr { Attributes of the gallery shortcode.

Required

Return Value

(string)
HTML content to display gallery.

Function Information

Since Version
2.5.0
Source File
wp-includes/media.php
Advertisement