wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



img_caption_shortcode_width › WordPress Filter Hooks

Seit3.7.0
Veraltetn/v
apply_filters( 'img_caption_shortcode_width', $width, $atts, $content )
Parameter: (3)
  • () width Width of the caption in pixels. To remove this inline style, return zero.
    Erforderlich: Ja
  • () atts Attributes of the caption shortcode.
    Erforderlich: Ja
  • () content The image element, possibly wrapped in a hyperlink.
    Erforderlich: Ja
Siehe:
  • img_caption_shortcode()
Definiert in:
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.




Quellcode

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