Support » Plugins » Removing links from images by default

  • 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.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing links from images by default’ is closed to new replies.