SHARE
TWEET

WooCommerce - Insert product description after shop loop tit

lorro Jul 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // WooCommerce - Insert product description after shop loop title
  3.   add_action( 'woocommerce_after_shop_loop_item_title', 'insert_description', 20 );
  4.   function insert_description() {
  5.     global $product;
  6.     print substr( $product->get_description(), 0, 100 );
  7.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top