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( 'posts_search', 'jje_search_by_slug', 10, 2 ); | |
| /** | |
| * Add post slugs to admin search for a specific post type | |
| * | |
| * Rebuilds the search clauses to include post slugs. | |
| * | |
| * @param string $search | |
| * @param WP_Query $query | |
| * @return string | |
| */ |