Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* Plugin Name: Show Short Description on the Shop Page
* Plugin URI: https://nicolamustone.blog/2016/12/01/show-products-short-description-shop-page/#comment-2119
* Description: Shows the product's short description on the shop page with WooCommerce.
* Version: 1.0
* Author: Nicola Mustone
* Author URI: https://nicolamustone.blog
*/
add_action( 'woocommerce_after_shop_loop_item', 'woo_show_excerpt_shop_page', 5 );
function woo_show_excerpt_shop_page() {
global $product;
echo $product->post->post_excerpt;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment