Call get_intermediate_image_sizes()
before applying the filter (intermediate_image_sizes
). Or, temporarily remove the filter, call the function to store the output, and then re-apply the filter.
If you only want the list of default image sizes, then you can remove the values returned by wp_get_additional_image_sizes()
from those returned by get_intermediate_image_sizes()
(untested):
remove_filter( 'intermediate_image_sizes', ... );
$image_sizes = get_intermediate_image_sizes();
$addtl_image_sizes = wp_get_additional_image_sizes();
$default_image_sizes = array_diff( $image_sizes, $addtl_image_sizes );
add_filter( 'intermediate_image_sizes', ... );
Related Posts:
- remove or update add_image_size
- get the attachement url for the medium sized image
- Is there a simple way to just insert a link to an image (without inserting an image)?
- Get attachment ID of author_meta image – Attachment Metadata
- Black and White thumbnails
- Alter image output in content
- How can I remove the image attachment ALT field?
- Download button for Featured Image in every post – automatically
- Change html structure of all img tags in WordPress
- Get a list of all image sizes that match aspect ratio of original one
- Insert image in comment reply
- Randomly add a ‘ul’ list of images
- Screenshot.png not showing up
- Include photos in WordPress blog posts without uploading to Media Library
- Thumbnails are bigger in size than the original image
- The the post id from image id
- Add attribute to caption shortcode from custom attachment field
- Get an image’s alt text in a shortcode using the image URL
- function to show only featured image of the posts
- Image resize depending on orientation?
- Character Limit w/ Excerpt removes Images Why?
- Featured images not displaying at full resolution
- Check if the image exists in WordPress media library
- Is there any action/filter hook to use when an image gets edited in the editor?
- Faster way to put images into a blog post by using Add Media dialog
- Changing default img html markup but not in admin back-end?
- Retrieve an array of image URLs that belong to a gallery
- Ho to add “Create Slider” option to default “Add Media” popup?
- Images in Blog List
- Using featured img as div background
- How can I change get_the_post_thumbnail to make 100% width image?
- Native gallery sorting is ignored
- Include WooCommerce 2’s prettyphoto scripts on all site pages
- Get custom thumbnail sizes [duplicate]
- Using Jetpack carousel w/o creating a gallery [closed]
- Where do I locate theme image files
- WordPress Facebook Open Graph plugin not working for 1 specific image [closed]
- Custom responsive ‘featured image’ sizes
- removing the featured image from the post
- Dynamic image crop in WP 3.0+?
- What can i do add title to ‘large’ image?
- Warning : tempnam() [function.tempnam]: SAFE MODE Restriction in effect
- WordPress cutting images size
- How to set minimum required size for featured image?
- Errors and warning with padlock sign when site moved to SSL
- How to make footer area transparent? Using Avada and WordPress [closed]
- Whats causing image quality to be degraded?
- Exclude image url from search query
- Fancybox just loading small white square
- WordPress Resize Image and show as thumb in post
- Resize uploaded images [duplicate]
- Image “description” and SEO within WP
- Indicate image sizes for upload by post type
- Why can’t I gain access to my homepage images?
- How to track inexistent images request
- Family collaboration to identify ancestors on pictures
- How to change Gallery image url in product page ? In function.php?
- Display image of child element in wordpress
- How do you obtain a list of all image file names on a wordpress website for replacement?
- Form File Upload Field generates multiple copies of Image Files (different sizes): Is this a WP feature or is this being done by the Plugin
- Responsive header image
- Upload error on localhost (at minimum, not yet tested online)
- Text Wrapping in Editor not Matching Website View
- Duplicate images on upload
- Broken images on iphone
- Redirect when user clicks on an image
- JPG Image extension not inserting into Custom table of wp
- wp_get_attachment_image_attributes not working
- Exclude first image from a Woocommerce image gallery
- Adding custom html/css/images to Theme
- Responsive images with srcset
- Using WP 4.9.6 and big trouble showing images
- How to handle a lot of media files in the uploads folder? (+10.000)
- How to enable Modal Image in DWQA Plugin of WordPress?
- How to link to img src using HTML email template in WordPress
- How to add an image below the header on homepage
- How can I add bigger image in my blog post?
- Relative path not working at all in WAMP local environment
- List sub pages with custom field content converting image ID to URL
- Images in plugin broken after URL migration
- Gallery Images could not be shown
- SVG files and wordpress
- Different image margins on different pages CSS [closed]
- Small image resizing for big! Alternative to timthumb
- Reduce Mobile Image upload size (wordpress)
- Gallery with shortcode not showing
- Show custom image size smaller in editor
- add titles to images in ad media in pages and posts
- How to get children/attachments in header?
- Setting name of attachment URL
- Show title when inserting single images
- Editing Featured Image Display When Creating Post
- wordpress is generating too many Image Sizes
- Best Photoshop-WordPress workflow for editing images without re-upload [closed]
- Uploaded Media Images on Site
- My subdirectory sites images (except webP) are throwing to 404 page even they are exist
- changing option for all posts
- Disable image compression for WebP
- Customize all image captions
- How to load only a certain type of image (functions.php)