WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Removing entire "Link To" drop down menu in 3.5? (3 posts)

  1. zz298
    Member
    Posted 1 year ago #

    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. jhonaker
    Member
    Posted 11 months ago #

    Bump!

    I'm trying to do the exact same thing.

  3. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    @jhonaker - them start your own thread per the forum guidelines - http://codex.wordpress.org/Forum_Welcome#Where_To_Post

Topic Closed

This topic has been closed to new replies.

About this Topic