Upload the Original Image and the Thumbnail


Filename: gpml-upload-the-original-image-and-thumbnail.php

 * Gravity Perks // Media Library // Upload the Original Image and the Thumbnail
 * https://gravitywiz.com/documentation/gravity-forms-media-library/
add_filter( 'gpml_image_sizes', function ( $sizes ) {
	// Removing the “thumbnail” will only upload the original image.
	return array( 'thumbnail' );
} );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.