Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Replace main image with selected image swatch
*/
function prefix_get_add_on_image_action( $action ) {
return 'replace_hide';
}
add_filter( 'pewc_get_add_on_image_action', 'prefix_get_add_on_image_action' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment