Created
February 29, 2016 10:57
-
-
Save SirDarcanos/f8c0ad47aebe2a45f7ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_archive_description', 'show_vendor_name_archive', 5 ); | |
function show_vendor_name_archive() { | |
global $wp_query; | |
$term = $wp_query->queried_object; | |
if ( ! is_object( $term ) || empty( $term->term_id ) ) { | |
return; | |
} | |
if ( is_tax( WC_PRODUCT_VENDORS_TAXONOMY, $term->term_id ) ) { | |
echo '<h3>' . $term->name . '</h3>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment