| 626 | | * @param array $attr Attributes attributed to the shortcode. |
| | 626 | * @param array $attr { |
| | 627 | * Attributes of the caption shortcode. |
| | 628 | * |
| | 629 | * @type string $id ID of the div element for the caption. |
| | 630 | * @type string $align Class name that aligns the caption. Default 'alignnone'. Accepts 'alignleft', |
| | 631 | * 'aligncenter', alignright', 'alignnone'. |
| | 632 | * @type int $width The width of the caption, in pixels. |
| | 633 | * @type string $caption The caption text. |
| | 634 | * } |
| 639 | | // Allow plugins/themes to override the default caption template. |
| 640 | | $output = apply_filters('img_caption_shortcode', '', $attr, $content); |
| | 647 | /** |
| | 648 | * Filter the default caption shortcode output. |
| | 649 | * |
| | 650 | * If the filtered output isn't empty, it will be used instead of generating |
| | 651 | * the default caption template. |
| | 652 | * |
| | 653 | * @since 2.6.0 |
| | 654 | * |
| | 655 | * @see img_caption_shortcode() |
| | 656 | * |
| | 657 | * @param string $output The caption output. Default empty. |
| | 658 | * @param array $attr Attributes of the caption shortcode. |
| | 659 | * @param string $content The image element, possibly wrapped in a hyperlink. |
| | 660 | */ |
| | 661 | $output = apply_filters( 'img_caption_shortcode', '', $attr, $content ); |
| 672 | | * @type string 'id' The ID of the div element for the caption. |
| 673 | | * @type string 'align' The class name that aligns the caption. Default 'alignnone'. |
| 674 | | * @type int 'width' The width of the image being captioned. |
| 675 | | * @type string 'caption' The image's caption. |
| 676 | | * } |
| 677 | | * @param string $content The image element, possibly wrapped in a hyperlink. |
| | 691 | * @param int $caption_width Width of the caption in pixels. To remove this inline style, |
| | 692 | * return zero. |
| | 693 | * @param array $atts Attributes of the caption shortcode. |
| | 694 | * @param string $content The image element, possibly wrapped in a hyperlink. |
| 699 | | * @param array $attr Attributes of the shortcode. |
| | 716 | * @param array $attr { |
| | 717 | * Attributes of the gallery shortcode. |
| | 718 | * |
| | 719 | * @type string $order Order of the images in the gallery. Default 'ASC'. Accepts 'ASC', 'DESC'. |
| | 720 | * @type string $orderby The field to use when ordering the images. Default 'menu_order ID'. |
| | 721 | * Accepts any valid SQL ORDERBY statement. |
| | 722 | * @type int $id Post ID. |
| | 723 | * @type string $itemtag HTML tag to use for each image in the gallery. Default 'dl'. |
| | 724 | * @type string $icontag HTML tag to use for each image's icon. Default 'dt'. |
| | 725 | * @type string $captiontag HTML tag to use for each image's caption. Default 'dd'. |
| | 726 | * @type int $columns Number of columns of images to display. Default 3. |
| | 727 | * @type string $size Size of the images to display. Default 'thumbnail'. |
| | 728 | * @type string $ids A comma-separated list of IDs of attachments to display. Default empty. |
| | 729 | * @type string $include A comma-separated list of IDs of attachments to include. Default empty. |
| | 730 | * @type string $exclude A comma-separated list of IDs of attachments to exclude. Default empty. |
| | 731 | * @type string $link What to link each image to. Default empty (links to the attachment page). |
| | 732 | * Accepts 'file', 'none'. |
| | 733 | * } |
| 715 | | // Allow plugins/themes to override the default gallery template. |
| 716 | | $output = apply_filters('post_gallery', '', $attr); |
| | 749 | /** |
| | 750 | * Filter the default gallery shortcode output. |
| | 751 | * |
| | 752 | * If the filtered output isn't empty, it will be used instead of generating |
| | 753 | * the default gallery template. |
| | 754 | * |
| | 755 | * @since 2.5.0 |
| | 756 | * |
| | 757 | * @see gallery_shortcode() |
| | 758 | * |
| | 759 | * @param string $output The gallery output. Default empty. |
| | 760 | * @param array $attr Attributes of the gallery shortcode. |
| | 761 | */ |
| | 762 | $output = apply_filters( 'post_gallery', '', $attr ); |
| 878 | | * @param array $attr Attributes of the shortcode. |
| | 924 | * @param array $attr { |
| | 925 | * Attributes of the audio shortcode. |
| | 926 | * |
| | 927 | * @type string $src URL to the source of the audio file. Default empty. |
| | 928 | * @type string $loop The 'loop' attribute for the `<audio>` element. Default empty. |
| | 929 | * @type string $autoplay The 'autoplay' attribute for the `<audio>` element. Default empty. |
| | 930 | * @type string $preload The 'preload' attribute for the `<audio>` element. Default empty. |
| | 931 | * @type string $class The 'class' attribute for the `<audio>` element. Default 'wp-audio-shortcode'. |
| | 932 | * @type string $id The 'id' attribute for the `<audio>` element. Default 'audio-{$post_id}-{$instances}'. |
| | 933 | * @type string $style The 'style' attribute for the `<audio>` element. Default 'width: 100%'. |
| | 934 | * } |
| 1015 | | * @param array $attr Attributes of the shortcode. |
| | 1074 | * @param array $attr { |
| | 1075 | * Attributes of the shortcode. |
| | 1076 | * |
| | 1077 | * @type string $src URL to the source of the video file. Default empty. |
| | 1078 | * @type int $height Height of the video embed in pixels. Default 360. |
| | 1079 | * @type int $width Width of the video embed in pixels. Default $content_width or 640. |
| | 1080 | * @type string $poster The 'poster' attribute for the `<video>` element. Default empty. |
| | 1081 | * @type string $loop The 'loop' attribute for the `<video>` element. Default empty. |
| | 1082 | * @type string $autoplay The 'autoplay' attribute for the `<video>` element. Default empty. |
| | 1083 | * @type string $preload The 'preload' attribute for the `<video>` element. |
| | 1084 | * Default 'metadata'. |
| | 1085 | * @type string $class The 'class' attribute for the `<video>` element. |
| | 1086 | * Default 'wp-video-shortcode'. |
| | 1087 | * @type string $id The 'id' attribute for the `<video>` element. |
| | 1088 | * Default 'video-{$post_id}-{$instances}'. |
| | 1089 | * } |