Created
March 27, 2015 07:23
-
-
Save eri-trabiccolo/572c5611ea60cfafb555 to your computer and use it in GitHub Desktop.
Disable metas in search pages
This file contains hidden or 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
add_filter('tc_show_post_metas', 'disable_metas_in_search', 20); | |
function disable_metas_in_search( $bool ){ | |
if ( is_search() ) | |
return false; | |
return $bool; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment