Browsing Tag

urlquot

When adding media, can I filter the HTML generated from "Insert From URL" before it hits the editor?

function test_function( $html ) { return $html . 'TEST!'; } add_filter( 'post_thumbnail_html', 'test_function', 21 ); add_filter( 'image_send_to_editor', 'test_function', 21 ); add_filter( 'media_send_to_editor', 'test_function', 21 );

Back to Top 103616 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising