Add our WooCommerce Variation SKU meta key to the SearchWP settings
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 | |
// reference: https://gist.github.com/jchristopher/0cad8418fd9477c57b53 | |
function my_searchwp_custom_field_keys_variation_skus( $keys ) { | |
$keys[] = 'my_product_variation_skus'; | |
return $keys; | |
} | |
add_filter( 'searchwp_custom_field_keys', 'my_searchwp_custom_field_keys_variation_skus', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment