Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Last active February 25, 2020 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/d12b8f607b053d66d24f84370bd44ce3 to your computer and use it in GitHub Desktop.
Save plugin-republic/d12b8f607b053d66d24f84370bd44ce3 to your computer and use it in GitHub Desktop.
<?php
/**
* Use a different size for add-on images
*/
function prefix_field_image_size( $size ) {
return 'large';
}
add_filter( 'pewc_filter_field_image_size', 'prefix_field_image_size', 10 );
/**
* Use a different size for image swatch images
*/
function prefix_image_swatch_thumbnail_size( $size, $item ) {
return 'large';
}
add_filter( 'pewc_image_swatch_thumbnail_size', 'prefix_image_swatch_thumbnail_size', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment