Create an image using add_image_size() only when uploading from a certain page
-
Hey all,
I’m using
add_image_size('service-banner', 150, 84, false);
to set a new image size when uploadingIs there a way to make it so that WP will only create an image of that size if the image is uploaded through a certain page (say ID 1234)? Basically I’ll never need that size for any other purpose, so it seems silly to create a version evert time I uplaod an image.
Thanks.
- The topic ‘Create an image using add_image_size() only when uploading from a certain page’ is closed to new replies.