WordPress.org

Support

Support » Plugins and Hacks » Hacks » Modify the media uploader

Modify the media uploader

Viewing 2 replies - 1 through 2 (of 2 total)
  • toocoolone
    Member

    @toocoolone

    This worked for me. I got this from here. They have more info on other fields you might want to remove or add.

    add_filter('attachment_fields_to_edit', 'remove_media_upload_fields', 10000, 2);
    function remove_media_upload_fields( $form_fields, $post ) {
    
        // remove unnecessary fields
        unset( $form_fields['image_alt'] );
        unset( $form_fields['post_excerpt'] );
    
        return $form_fields;
    }
    rwzdoorn
    Member

    @rwzdoorn

    @toocoolone Cheers! Just what I was looking for! I also found it in the admin / include section but it’s not handy when updating WP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modify the media uploader’ is closed to new replies.