• I’m using Avada Theme and have just updated my pugins and wordpress to 5.6 and my code snippets have stopped working. The code was all working perfectly prior to the update. Even with the code activated the sales flash is still showing.

    I’m using the following code:

    This to remove the Sales Flash Icon

    add_filter(‘woocommerce_sale_flash’, ‘woo_custom_hide_sales_flash’);
    function woo_custom_hide_sales_flash()
    {
    return false;
    }

    This to increase the variation threshold.
    function lets_increase_the_variation_threshold( $threshold ) {

    return 500;
    }
    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘lets_increase_the_variation_threshold’ );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Code Snippets Stopped Working After Update’ is closed to new replies.