画像挿入をカスタマイズ

function my_prepend_image($html) {
 return "something".$html;
}
add_filter('image_send_to_editor','my_prepend_image');

http://www.w3.org/TR/2009/WD-html5-20090825/text-level-semantics.html#the-figure-element(title)

function my_wrap_anchor($html, $id, $caption, $title, $align, $url, $size, $alt ) {

	$html= strip_tags( $html, '<img>' );

	$wrap_html= '<a href="%1$s" class="test">%2$s</a>';

	return sprintf( $wrap_html, $url, $html );
}
add_filter('image_send_to_editor','my_wrap_anchor',10,8);

[emulsion_relate_posts]