Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function woocommerce_after_shop_loop_item_title_short_description() {
- global $product;
- if ( ! $product->post->post_excerpt ) return;
- ?>
- <div itemprop="description">
- <?php echo apply_filters( 'woocommerce_short_description', $product->post->post_excerpt ) ?>
- </div>
- <?php
- }
- add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_after_shop_loop_item_title_short_description', 5);
- <p>lorem lipsum losem</p>
- <ul>
- <li> lorem </li>
- <li> lipsum </li>
- <li> losem </li>
- </ul>
- foreach ( array( 'pre_term_description' ) as $filter ) {
- remove_filter( $filter, 'wp_filter_kses' );
- }
- foreach ( array( 'term_description' ) as $filter ) {
- remove_filter( $filter, 'wp_kses_data' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement