Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Last active September 24, 2024 17:55
Show Gist options
  • Select an option

  • Save claudiosanches/6f91ad228c2176b986b2 to your computer and use it in GitHub Desktop.

Select an option

Save claudiosanches/6f91ad228c2176b986b2 to your computer and use it in GitHub Desktop.

Revisions

  1. claudiosanches revised this gist Jul 26, 2015. No changes.
  2. claudiosanches created this gist Jul 13, 2015.
    5 changes: 5 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    return 10;
    }

    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );