Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created April 24, 2019 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/d3db0cb9110f637af21811470e6dbe8d to your computer and use it in GitHub Desktop.
Save jchristopher/d3db0cb9110f637af21811470e6dbe8d to your computer and use it in GitHub Desktop.
Customize whether SearchWP thinks a meta key is in use
<?php
add_filter( 'searchwp_is_used_meta_key', function( $used, $meta_key ) {
// TODO: Determine whether the meta key is in use.
return $used; // true/false
}, 20, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment