Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @hogo

    Please update our plugin to the latest version 1.0.8 then add below snippet (How to add snippet?):

    add_filter( 'wpclv_term_label', 'your_wpclv_term_label', 99, 3 );
    function your_wpclv_term_label( $label, $term, $product_id ) {
    	if ( ! empty( $term->description ) ) {
    		return $term->description;
    	}
    
    	return $label;
    }
    Thread Starter hogo

    (@hogo)

    Thanks, It cause a 500 error by i removed the product id from function parameters and it worked.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display attribute description instead of name in tooltip’ is closed to new replies.