Removing "Link To" drop down menu in 3.5 media uploader (3 posts)

  1. zz298
    Posted 2 years ago #

    *Cross posted from "Plugins and Hacks" since I posted this in the wrong forum the first time.*

    I'm trying to remove the entire "Link to" drop-down menu in the "Upload Media" section, under "Attachment Display Settings". I was able to do this in WP versions prior to 3.5 with the following function:

    <?php function my_function_to_remove_url_buttons ( $form_fields ) {
      return $form_fields;
    add_filter('attachment_fields_to_edit','my_function_to_remove_url_buttons',10,1); ?>

    This is no longer working in 3.5, however. Can anyone help me make this work in the new version? Help would be greatly appreciated!

  2. croakingtoad
    Posted 2 years ago #

    You may want to check out this post. Seems like the new media manager isn't as extendable at the moment: http://wordpress.org/support/topic/wp-35-and-media-tabs

  3. Ankur Gupta
    Posted 2 years ago #

    I also want to know if i can change the default values for the attachment settings...

Topic Closed

This topic has been closed to new replies.

About this Topic