Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add our WooCommerce Variation SKU meta key to the SearchWP settings
<?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
You can’t perform that action at this time.