Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:19
What would you like to do?
Add our WooCommerce Variation SKU meta key to the SearchWP settings
// reference:
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