Un motore di ricerca WordPress per sviluppatori e autori di temi



img_caption_shortcode_width ›

Da3.7.0
Deprecaton/a
apply_filters( 'img_caption_shortcode_width', $width, $atts, $content )
Parametri: (3)
  • (int) $width Width of the caption in pixels. To remove this inline style, return zero.
    Richiesto:
  • (array) $atts Attributes of the caption shortcode.
    Richiesto:
  • (string) $content The image element, possibly wrapped in a hyperlink.
    Richiesto:
Vedi:
  • img_caption_shortcode()
Definito a:
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.





Sorgenti

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