image_add_caption_shortcode хук-фильтр . WP 2.6.0
Filters the image HTML markup including the caption shortcode.
Использование
add_filter( 'image_add_caption_shortcode', 'filter_function_name_3102', 10, 2 ); function filter_function_name_3102( $shcode, $html ){ // filter... return $shcode; }
- $shcode(строка)
- The image HTML markup with caption shortcode.
- $html(строка)
- The image HTML markup.
Список изменений
С версии 2.6.0 | Введена. |
Где вызывается хук
wp-admin/includes/media.php 249
return apply_filters( 'image_add_caption_shortcode', $shcode, $html );