Exactly the same code as Mridul, but different filter:
function wp_70048_remove_image_sizes($sizes) {
unset($sizes['thumbnail']);
unset($sizes['medium']);
unset($sizes['large']);
return $sizes;
}
add_filter('image_size_names_choose', 'wp_70048_remove_image_sizes');
Tested with WP 3.4.2
Related Posts:
- How to reduce original image quality on upload?
- Set JPEG compression for specific custom image sizes
- Best way to programatically add “rel” attributes to page and post images
- Publish/Update post is changing image links from file url to post url
- Disable auto-resizing of uploaded images, but only for certain filename
- Set spesific size of featured images
- Limit dimensions of “Full” size images
- how can I change all wordpress media file url to custom cdn url?
- How to add HTML into error message
- Zip all (original) images from media gallery
- Can’t generate thumbnail images
- media resize/crop possibilities?
- Run wp_kses_decode_entities on atom feed?
- Filtering out the #more anchor link that gets produced by
- Can’t filter wp_get_attachment_link
- Redirect to another page using contact form 7? [closed]
- append to existing parent theme function
- Add Element as a Filter to the_content
- Override the WordPress core function wp_referer_field
- Modify post filter to set custom number of posts per page and exclude child posts
- Make wp_link_pages() suitable for Twitter Bootstrap markup
- How can I add a filter for specific categories on functions.php?
- How to add custom JavaScript in functions?
- Setting a default text for excerpts of a particular category
- How to edit the Tags within the image file URLs?
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- Can’t properly set the_title add_filter to show short_URL
- Add_filter when value is no variable?
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- How to add_filter html template to middle of content
- (Woocommerce) Order by price when entering specific category
- Filter an WordPress Function in (general-template.php)
- srcset and custom field get_post_meta and wp_get_attachment_url
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Redefine function arguments before rendering
- How to edit classes in body tag?
- How to hide image-url if no attachment?
- Filter nav menu items HTML tags and wrap inner text with span
- Possible to hook into Media Library preview File column and use a custom image?
- How can I add a class to a nav li depending on URL?
- What are the meta fields for an attachment?
- Can’t locate custom image sizes defined by child theme
- Modify gform_other_choice_value for specific form and specific field in Gravity Forms
- Combine embed_oembed_html and oembed_result
- login_headertitle is deprecated since version 5.2.0
- Set “woocommerce_is_purchasable” to false for specific “$product->is_stock_status”
- How to display the_archive_title() and the_archive_description() – “weird” interaction
- Filter to wp_list_authors
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- How to add custom li item to wordpress menu
- How to properly set custom logo size?
- Add attribute only to first image of every post via functions.php
- Native gallery custom html output
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Need to convert image url to a Base_64 data url with wordpress function..
- How to Add Shortcode to html img code?
- The_content and Preg_replace in loaded Iframe [closed]
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- How to edit/replace Parent functions.php function in Child Theme to add “Walker” class
- How to add a new image size and apply it to posts only?
- Functions Filter Question [closed]
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Function to insert missing image size attributes into img tags
- Add Adsense code between job listings – wp job manager plugin
- Problem with images URL after filter applying
- Image Crop Not Working
- remove_action not working, even after changing priority [duplicate]
- remove/hide wp-editor
- Use existing image sizes for WooCommerce
- Problem in using Customizer
- Replace header image on all other pages but home – URL issue
- Add a class to post if it has been recently updated
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- search form leads to 404
- Retrieve First Image Function
- Custom Image Size in Insert Media
- how to add_filter to non hook function
- Featured Image keeps cropping
- Prevent creating multiple image resizes in twentytwelve template
- Conditional function for excluding first image from content, not working
- Convert all uploaded PNG files to PNG-8 format
- Using add_image_size in functions.php to get original uploaded file
- get_image_tag() html output : empty src attribute
- Changing the text of Upload/Insert on Posts and Pages Screen
- Any adverse effects of adding apply_filters to a function?
- Conditional custom menu?
- Facebook OpenGraph error, Call to undefined function wp_get_attachment_src()
- Need To Resize Images Exactly Without Losing Image Details
- Get URLs for AJAX Filter Checkboxes WordPress
- Custom image sizes showing in Classic Editor only when upladed directly to post
- how can I add filter in specfic field in my website?
- Different image using srcset function
- How to display an image before title text in menu items
- Adding custom social icons to the social media icon block in the Gutenberg editor?
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- Auto delete content in specific folder inside media library
- How to change images url in function.php?