wc_get_product_tag_list()
Returns the product tags in a list.
No Hooks.
Returns
String.
Usage
wc_get_product_tag_list( $product_id, $sep, $before, $after );
- $product_id(int) (required)
- Product ID.
- $sep(string)
- .
Default: ', ' - $before(string)
- .
Default: '' - $after(string)
- .
Default: ''
wc_get_product_tag_list() wc get product tag list code WC 10.3.6
function wc_get_product_tag_list( $product_id, $sep = ', ', $before = '', $after = '' ) {
return get_the_term_list( $product_id, 'product_tag', $before, $sep, $after );
}