Voor uw functions.php-bestand of een functionaliteitsplug-in:
function html5_insert_image($html, $id, $caption, $title, $align, $url) ( $html5 = " "; $html5 .= "
"; if ($caption) ( $html5 .= "
$caption
"; ) $html5 .= "
"; return $html5; ) add_filter( 'image_send_to_editor', 'html5_insert_image', 10, 9 );
Het neemt ook wat u invoert als bijschrift en voegt dit in het
Voorbeeld ingevoegde code:
Caption for image