wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



img_caption_shortcode_width › Hooks de Filtros WordPress

Desde3.7.0
Obsoleton/a
› apply_filters( 'img_caption_shortcode_width', $width, $atts, $content )
Parâmetros: (3)
  • () width Width of the caption in pixels. To remove this inline style, return zero.
    Required: Yes
  • () atts Attributes of the caption shortcode.
    Required: Yes
  • () content The image element, possibly wrapped in a hyperlink.
    Required: Yes
Ver:
  • img_caption_shortcode()
Definido em:
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.




Fonte

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