Xử lý ảnh, image trong wordpress full phần 1(ok)
1. Disable image scaling in WordPress (a version 5.3 update)
add_filter( 'big_image_size_threshold', '__return_false' );
i
// https://stackoverflow.com/questions/62996135/remove-scaled-from-automatically-scaled-image-wordpress


2. Muốn loại bỏ kích thước ['medium', 'medium_large','thumbnail','large', '1536x1536', '2048x2048'] trong wordpress

3. Xử lý ảnh kết hợp với lệnh cmd hỗ trợ của wordpress để loại bỏ nhưng kích thước không mong muốn :))



4. My default media setting in WordPress blog is 150x150, 300x300, 1024x1024 respectively for thumbnail, medium, large images. Now I am designing a theme that need different size thumbnail images to show in theme. For this, I go to the media setting again and changed the setting with my news sizes like 72x72, 250x250, 400x400 respectively for thumbnail, medium, large images.




















5. Cách sử dụng remove_image_size kết hợp với init cũng có tác dụng như trên :)


PreviousHow to Set, Get, and Delete WordPress Cookies (like a Pro) (ok)NextCách tạo file csv để import sản phẩm woocommerce (ok)
Last updated