I want set it so that when one inserts an image into a post, by default there is no link attached, but the option to add one is still there. By default right now, the image links to a full sized version of itself.
In the file
wp-admin/includes/media.php, the function
get_attachment_fields_to_edit is defined, and line 620 is what I want to change. It is easy to just remove the information from this page, but I want to build a plugin to do so, so I won’t have to do this later.
I want to know exactly how to add a filter to this function from a plugin and/or if I am currently allowed by the API to modify it with a plugin.