Created
April 23, 2019 13:10
-
-
Save jchristopher/2db8176af5eb52e390010a73b19b3c3e to your computer and use it in GitHub Desktop.
Customize Custom Fields listed in SearchWP engine config UI
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 | |
add_filter( 'searchwp_custom_field_keys_page', function( $meta_keys, $post_type ) { | |
// TODO: Customize $meta_keys to meet your needs. | |
return $meta_keys; // Array of meta keys to display in Custom Fields dropdown. | |
}, 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment