wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



image_add_caption_text › Filtr WordPress Hooks

Od4.1.0
Przestarzałyn/a
› apply_filters( 'image_add_caption_text', $caption, $id )
Parametry: (2)
  • () caption The original caption text.
    Wymagane: Tak
  • () id The attachment ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the caption text.

Note: If the caption text is empty, the caption shortcode will not be appended to the image HTML when inserted into the editor. Passing an empty value also prevents the {@see 'image_add_caption_shortcode'} Filters from being evaluated at the end of image_add_caption().




Źródło

$caption = apply_filters( 'image_add_caption_text', $caption, $id );