Created
November 5, 2019 19:05
-
-
Save plugin-republic/87e8f66dfdd47b1a4cc01c207307dfa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Include variations in products rule | |
*/ | |
function prefix_search_products_method( $method, $args ) { | |
return 'woocommerce_json_search_products_and_variations'; | |
} | |
add_filter( 'wcfad_search_products_method', 'prefix_search_products_method', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment