Removing links from images by default (3 posts)

  1. ephemers
    Posted 7 years ago #

    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.

  2. RichardSapien
    Posted 7 years ago #

    +1, I'd also like this.

  3. RichardSapien
    Posted 7 years ago #

    Nevermind. For future reference, if anybody is looking for a fix... this: http://finkaboutit.com/2009/how-to-get-rid-of-the-attachment-thing-on-your-images/

Topic Closed

This topic has been closed to new replies.

About this Topic