Is there a more efficient admin search function/plugin?
Altering the WHERE clause There’s a filter named posts_search that allows to filter the SQL WHERE clause used for the query during search (when WP_Query::is_search() returns true and WP_Query->s is set): add_filter( ‘posts_search’, ‘wpse134392PostsSearchSQL’, 20, 2 ); function wpse134392PostsSearchSQL( $sql, $wp_query ) { // Alter SQL clause here return $where; } Custom ORDERBY To intercept … Read more