Created
July 12, 2016 20:38
-
-
Save helgatheviking/90a0bde30fe06b6ba78829319adb4b7c to your computer and use it in GitHub Desktop.
Add the product's short description to the Mix and Match table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_mnm_row_item_description', 'mnm_add_short_description', 15 ); | |
function mnm_add_short_description( $mnm_product ){ | |
if ( ! $mnm_product->post->post_excerpt ) { | |
return; | |
} | |
?> | |
<div itemprop="description"> | |
<?php echo apply_filters( 'woocommerce_short_description', $mnm_product->post->post_excerpt ) ?> | |
</div> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment