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



img_caption_shortcode_width › Filtr WordPress Hooks

Od3.7.0
Przestarzałyn/a
› apply_filters( 'img_caption_shortcode_width', $width, $atts, $content )
Parametry: (3)
  • () width Width of the caption in pixels. To remove this inline style, return zero.
    Wymagane: Tak
  • () atts Attributes of the caption shortcode.
    Wymagane: Tak
  • () content The image element, possibly wrapped in a hyperlink.
    Wymagane: Tak
Zobacz:
  • img_caption_shortcode()
Zdefiniowane na:
Codex:

Filters the width of an image's caption.

By default, the caption is 10 pixels greater than the width of the image, to prevent post content from running up against a floated image.




Źródło

$caption_width = apply_filters( 'img_caption_shortcode_width', $width, $atts, $content );