Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Show tag description for themes that don't support this
- // code goes in functions.php for your child theme
- add_action ( 'woocommerce_archive_description', 'show_tag_description', 20 );
- function show_tag_description() {
- if ( is_product_tag() ) {
- $term_id = get_queried_object()->term_id;
- echo tag_description( $term_id );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement