wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



image_add_caption_text › WordPress Filter Hooks

Da4.1.0
Deprecaton/a
› apply_filters( 'image_add_caption_text', $caption, $id )
Parametri: (2)
  • () caption The original caption text.
    Richiesto: Sì
  • () id The attachment ID.
    Richiesto: Sì
Definito a:
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().




Sorgenti

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