Created
January 21, 2015 14:17
-
-
Save jchristopher/4abe2f5fbdc945f70875 to your computer and use it in GitHub Desktop.
Usage example for searchwp_return_orderby_date
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 | |
// ALWAYS return search results ordered by date | |
add_filter( 'searchwp_return_orderby_date', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment