[wp-hackers] Modify "Insert into post" behaviour

scribu scribu at gmail.com
Wed Dec 10 11:12:28 GMT 2008

I need a way to do something like media_send_to_editor() does:

When the user clicks "Insert into post", call a javascript function
that will do something on the post editing screen with the data
submitted in the form.

I'm trying to get my head around the filters in
wp-admin/includes/media.php and the like, but I haven't gotten too

add_filter('image_send_to_editor', 'function_that_filters_the_text');

Any ideas?


More information about the wp-hackers mailing list