• Resolved LS

    (@lsterling03)


    Is there a hook/action I can use to change the Quick View Button Label for certain products only?

    I’ve set the label name in the YITH plugin settings, but I want to change it dynamically to something else if a product is in a certain category.

    Is there a function I can use that will allow me to change the name?

    Thank you!

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

    (@yithemes)

    Hi,
    you can use the pre_option WordPress filter for change the label option value.
    Something like

    add_filter( 'pre_option_yith-wcqv-button-label', 'your_function' );
    function your_function(){
    	return 'your button label';
    }

    Regards.

    Thread Starter LS

    (@lsterling03)

    That worked. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change the Quick View Button Label conditionally?’ is closed to new replies.