wphooks.info - image_add_caption_shortcode

image_add_caption_shortcode

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/media.php:
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
	$shcode = '[caption id="' . $id . '" align="align' . $align	. '" width="' . $width . '"]' . $html . ' ' . $caption . '[/caption]';

	/**
	 * Filters the image HTML markup including the caption shortcode.
	 *
	 * @since 2.6.0
	 *
	 * @param string $shcode The image HTML markup with caption shortcode.
	 * @param string $html   The image HTML markup.
	 */
	return apply_filters( 'image_add_caption_shortcode', $shcode, $html );
}

/**
 * Private preg_replace callback used in image_add_caption()
 *
 * @access private
 * @since 3.4.0
 */
function _cleanup_image_add_caption( $matches ) {