image_add_caption_shortcode хук-фильтрWP 2.6.0

Filters the image HTML markup including the caption shortcode.

Использование

add_filter( 'image_add_caption_shortcode', 'wp_kama_image_add_caption_shortcode_filter', 10, 2 );

/**
 * Function for `image_add_caption_shortcode` filter-hook.
 * 
 * @param string $shcode The image HTML markup with caption shortcode.
 * @param string $html   The image HTML markup.
 *
 * @return string
 */
function wp_kama_image_add_caption_shortcode_filter( $shcode, $html ){

	// filter...
	return $shcode;
}
$shcode(строка)
The image HTML markup with caption shortcode.
$html(строка)
The image HTML markup.

Список изменений

С версии 2.6.0 Введена.

Где вызывается хук

image_add_caption()
image_add_caption_shortcode
wp-admin/includes/media.php 249
return apply_filters( 'image_add_caption_shortcode', $shcode, $html );

Где используется хук в WordPress

Использование не найдено.