Home Forums WoodMart support forum Disable WOODMART_Widget_Price_Filter

Disable WOODMART_Widget_Price_Filter

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70427

    gregbast1994
    Participant

    I’d like to disable the custom price widget, I’d like to see whether or not this feature is worth the performance hit. Query monitor claims this widget adds 1-2s to shop pages.

    I don’t see an option in the theme options tab, but maybe I am missing something.

    Thanks in advance.

    #70430

    Artem Temos
    Keymaster

    Add the following code snippet to the functions.php file in your child theme to remove default sorting and price filters

    add_filter( 'woodmart_use_custom_price_widget', '__return_false', 10 );
    add_filter( 'woodmart_use_custom_order_widget', '__return_false', 10 );
Viewing 2 posts - 1 through 2 (of 2 total)