Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Created December 14, 2017 12:44
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 rynaldos-zz/674e87cc9311d87bae89c3f6ea6db901 to your computer and use it in GitHub Desktop.
Save rynaldos-zz/674e87cc9311d87bae89c3f6ea6db901 to your computer and use it in GitHub Desktop.
[WooCommerce 3.0+] Change number of Instagram images output on product page (Instagram plugin required)
add_filter( 'woocommerce_instagram_images', 'woocommerce_instagram_img_count' );
function woocommerce_instagram_img_count(){
return 4;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment