Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active April 24, 2017 15:40
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/7852683 to your computer and use it in GitHub Desktop.
Save jchristopher/7852683 to your computer and use it in GitHub Desktop.
Add two Custom Fields to be included on the SearchWP settings screen
<?php
function my_searchwp_custom_field_keys( $keys ) {
$keys[] = 'my_first_meta_key';
$keys[] = 'my_second_meta_key';
return $keys;
}
add_filter( 'searchwp_custom_field_keys', 'my_searchwp_custom_field_keys', 10, 1 );
@lucidlips
Copy link

@jchristopher
Copy link
Author

Thank you, fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment