What I’m trying to do is edit the output of image_send_to_editor
so that i can make the anchor that wraps around the image have a specific class & rel.
I plan to basically make each image that gets inserted into a post become fancybox capable without having to be in a gallery or using a plugin.
Heres what I have thus far but I need help filling in the blanks…
<?php
add_filter( 'image_send_to_editor', 'fancy_capable', 10, 7);
function fancy_capable($html, $id, $alt, $title, $align, $url, $size ) {
// not sure what to do here???
return "$html";
}
?>