WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. zz298
    Member
    Posted 1 year 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 ) {
      unset($form_fields['url']);
      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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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