Created
February 14, 2019 17:40
-
-
Save jchristopher/45c6cfa86db12f8eb22296bc29643146 to your computer and use it in GitHub Desktop.
Customize which meta keys are used for highlighting when finding better excerpts
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_th_meta_keys( $meta_keys ) { | |
// TODO: update $meta_keys if necessary. | |
return $meta_keys; | |
} | |
add_filter( 'searchwp_th_meta_keys', 'my_searchwp_th_meta_keys' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment