Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Usage example for searchwp_return_orderby_date
<?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