Overview


Admin Search makes searching your WordPress website easy by bringing results from all your post types, media, taxonomies, comments, users and admin pages together in a single, simple-to-use interface, seamlessly integrated into the WordPress admin interface.

Choose which post types and taxonomies are searched and the number of results displayed for each. Admin Search also supports custom post types and taxonomies.

Admin Search is a lightweight plugin that doesn’t use any space in your WordPress database by using the WP_Query function in real time. Admin Search is also extendable with filters.

Features

  • Search everything on your WordPress site, anywhere
  • Simple and easy to use
  • Sources of search results are customizable
  • Extend the search query with add_filter

Configure & Extend

Admin Search can be extended by using filters. The following filters are available:

  • admin_search_query to modify the search query string
  • admin_search_posts_query to modify the WP_Query arguments for all searched post types
  • admin_search_terms_query to modify the get_terms arguments for all searched terms (taxonomies)
  • admin_search_comments_query to modify the WP_Comment_Query arguments for all searched comments
  • admin_search_users_query to modify the WP_User_Query arguments for all searched users

Eg.

// Correct the spelling of dog when searching
add_filter( 'admin_search_query', function( $query ) {
    if ( $query == 'dog' ) {
        $query = 'doggo';
    }

    return $query;
} );

Or

// Exclude post with the ID 96
add_filter( 'admin_search_posts_query', function( $query ) {
    $query['post__not_in'] = array( 96 );
    return $query;
} );

Discuss


Summary
Version:
1.1.1
Last updated:
Active installations:
WordPress Version:
4.9.2 or higher
Tested up to:
5.7.2
PHP Version:
5.2 or higher
Ratings