PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Override radio.php with hook woof_html_types_view_radio hook

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

I have created my own radio.php in the following theme directory : /plugins/woocommerce-products-filter/views/html_types/radio.php
(I just add a tabindex="0" in the <label> tag)

And then use the hook woof_html_types_view_radio to enable the overriding like this :

add_filter('woof_html_types_view_radio','mytheme_woof_radiobutton_override', 10, 1);
function mytheme_woof_radiobutton_override($pathViewRadio){
    $pathViewRadio = get_template_directory_uri() ."/plugins/woocommerce-products-filter/views/html_types/radio.php";
    return $pathViewRadio;
}
And it does not work at all.
Did I make anything wrong ?

Hello

Yes, I think you are not working correctly with the paths. Please  try  to  read  this - https://developer.wordpress.org/reference/functions/get_template_directory_uri/

Try to use - https://developer.wordpress.org/reference/functions/get_stylesheet_directory/