Last active
April 24, 2017 15:40
-
-
Save jchristopher/7852683 to your computer and use it in GitHub Desktop.
Add two Custom Fields to be included on the SearchWP settings screen
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 | |
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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, fixed!