अपने कार्यों के लिए। Php फ़ाइल या एक कार्यक्षमता प्लगइन:
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 );
यह वह भी लेता है जो आप एक कैप्शन के रूप में दर्ज करते हैं और इसे अंदर डालते हैं
। उदाहरण डाला कोड:
Caption for image