Outil de recherche WordPress pour les développeurs et auteurs de thèmes



img_caption_shortcode_width ›

Depuis3.7.0
Dépréciéen/a
apply_filters( 'img_caption_shortcode_width', $width, $atts, $content )
Paramètres: (3)
  • (int) $width Width of the caption in pixels. To remove this inline style, return zero.
    Requis: Oui
  • (array) $atts Attributes of the caption shortcode.
    Requis: Oui
  • (string) $content The image element, possibly wrapped in a hyperlink.
    Requis: Oui
Voir:
  • img_caption_shortcode()
Défini(e) dans:
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.





Source

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