Skip to content

Instantly share code, notes, and snippets.

@leewillis77

leewillis77/functions.php Secret

Created Dec 3, 2018
Embed
What would you like to do?
Use the short product description instead of description (WooCommerce 3.0+)
<?php
function lw_woocommerce_gpf_description_type( $type ) {
return 'short';
}
add_filter( 'woocommerce_gpf_description_type', 'lw_woocommerce_gpf_description_type' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment