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



img_caption_shortcode_width › Les Filtres WordPress

Depuis3.7.0
Dépréciéen/a
› apply_filters( 'img_caption_shortcode_width', $width, $atts, $content )
Paramètres: (3)
  • () width Width of the caption in pixels. To remove this inline style, return zero.
    Requis: Oui
  • () atts Attributes of the caption shortcode.
    Requis: Oui
  • () 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 );