Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. function woocommerce_after_shop_loop_item_title_short_description() {
  2. global $product;
  3. if ( ! $product->post->post_excerpt ) return;
  4. ?>
  5. <div itemprop="description">
  6. <?php echo apply_filters( 'woocommerce_short_description', $product->post->post_excerpt ) ?>
  7. </div>
  8. <?php
  9. }
  10. add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_after_shop_loop_item_title_short_description', 5);
  11.  
  12. <p>lorem lipsum losem</p>
  13.  
  14. <ul>
  15. <li> lorem </li>
  16. <li> lipsum </li>
  17. <li> losem </li>
  18. </ul>
  19.  
  20. foreach ( array( 'pre_term_description' ) as $filter ) {
  21. remove_filter( $filter, 'wp_filter_kses' );
  22. }
  23.  
  24. foreach ( array( 'term_description' ) as $filter ) {
  25. remove_filter( $filter, 'wp_kses_data' );
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement