Admin Search
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 with filter hooks for deep customization. Features Search everything on your WordPress site, anywhere Simple and easy to use Sources of search results are customizable Extend the search query with filter hooks Configure & Extend Admin Search can be extended by using filter hooks. The following filters are available: admin_search_query to modify the search query string. The filter argument supplied is a string containing the search query admin_search_sources to modify the search sources. The filter argument supplied is an array of sources, add, remove or modify sources admin_search_posts_query to modify the WP_Query arguments array for all searched post types. The filter argument supplied is an array of WP_Query arguments, add, remove or modify supported arguments admin_search_{Post Type}_query to modify the WP_Query arguments array for a specific post type. The filter argument supplied is an array of WP_Query arguments, add, remove or modify supported arguments. Replace {Post Type} with the name of the post type to modify admin_search_terms_query to modify the get_terms arguments array for all searched terms (taxonomies). The filter argument supplied is an array of get_terms arguments, add, remove or modify supported arguments admin_search_{Term}_query to modify the get_terms arguments array for a specific term (taxonomy). The filter argument supplied is an array of get_terms arguments, add, remove or modify supported arguments. Replace {Term} with the name of the term to modify admin_search_comments_query to modify the WP_Comment_Query arguments array for all searched comments. The filter argument supplied is an array of WP_Comment_Query arguments, add, remove or modify supported arguments admin_search_users_query to modify the WP_User_Query arguments array for all searched users. The filter argument supplied is an array of admin_search_users_query arguments, add, remove or modify supported arguments admin_search_website_titles to modify the labels array for external websites. The filter argument supplied is an array of predefined domains and titles, add, remove or modify domains and titles admin_search_pre_results and admin_search_post_results to modify the results array before or after results are appended to the array. The filter argument supplied is an empty array for admin_search_pre_results or search results for a given query for admin_search_post_results, add, remove or modify result items admin_search_fields to modify the searchable fields array. The filter argument supplied is an array of searchable fields (post_title, post_name, post_excerpt and post_content) admin_search_meta_queries to add custom fields to the searchable fields array. The filter argument supplied is an empty array. Use this filter instead of admin_search_fields when adding custom fields Examples: Modify the query string before a search is initiated // Correct the spelling of dog when searching add_filter( 'admin_search_query', function( $query ) { if ( 'dog' === $query ) { $query = 'doggo'; } return $query; } ); Modify the WP_Query parameters before a search is initiated // Exclude post with the ID 96 add_filter( 'admin_search_posts_query', function( $query ) { $query['post__not_in'] = array( 96 ); return $query; } ); Add a custom field to the searchable fields // Add the price custom field to the searchable fields add_filter( 'admin_search_meta_queries', function( $fields, $post_type ) { if ( 'post' === $post_type ) { $fields[] = 'price'; } return $fields; }, 10, 2 ); Modify the search results after a search has initiated // Add custom results from external API add_filter( 'admin_search_post_results', function( $results, $q ) { $results[ 'custom' ][ 'post_type' ] => array( 'name' => 'custom', 'label' => 'Custom' ); $json = file_get_contents( 'https://example.com?search=' . $q ); $obj = json_decode( $json ); foreach ( $obj as $item ) { $results[ 'custom' ][ 'posts' ][] = array( … ); } return $results; }, 10, 2 );
Top keywords
- search37×5.39%
- query28×4.08%
- array25×3.64%
- modify25×3.64%
- admin23×3.35%
- admin search21×3.06%
- filter20×2.92%
- arguments18×2.62%
- post18×2.62%
- add17×2.48%
- results16×2.33%
- argument12×1.75%
Ajax Search Lite – Live Search & Filter
Ajax Search Lite is a live search plugin for WordPress. This responsive live search engine, which will boost your user experience by providing a user friendly ajax powered search form – a live search bar. You can filter the results with the category and post type filter boxes as well. Google autocomplete and keyword suggestions also included. Very smooth animations with mobile device support and regular updates. Use Ajax Search Lite as a replacement for the default WordPress search with a better looking, more efficient search engine. Fine-tune the user experience by providing a powerful ajax search plugin to your visitors. Supports custom post types and custom fields and more. Boost your site search engine with this custom built live search engine. Home | Features | Lite Docs | Pro Docs Ajax Search Lite and Ajax Search Pro does not require monthly subscriptions, does not store your data on external servers – everything is done locally, on your server. Features List Search in posts and pages Search in custom post types such as WooCommerce Products, Events, Portfolio items and more Search in title, description, excerpt, categories and tags and any custom fields Archive page live loader and filter Automatic search replacement as well as widget and shortcode availalbe Custom Filter boxes (checkbox filters) for categories and post types WPML, Polylang and QtranslateX compatible Live Search Statistics Super Fast Search Cache – instant cached results 10+ built in templates + options for color adjustments Retina ready vectorized SVG and CSS3 icons Category and post exclusions Frontend search settings boxes Images in search results Fully ajax powered 50+ options on the backend Caches images for faster response time Performance Options Google analytics integration – both as Events and Pageviews Primary and Secondary ordering options Highly compatible and responsive Support Feel free to contact us via the support forums. In Pro version Front-end demo | Back-end demo Create multiple search bars with different configurations All page builders supported (Elementor, Divi, Oxygen, Breakdance, Gutenberg, Beaver etc..) Search in Every custom post type Search in Media Attachments and contents (PDF, Excel, Word, PowerPoint etc..) Search in BuddyPress activity feed, users and group names Search in PeepSo Groups and Group Activities Search result grouping by categories or post types Search in custom fields including repeaters and special custom field taypes Predictive search results suggestions WooCommerce Shop search and filter Search and filter Elementor Loop Grid and JetEngine Listing Grid Advanced caching technology – image precaching, search phrase caching Category filters, custom field filters, post type filters, tag filters, taxonomy term filters and date filters Checkbox, Drop-down, Multiselect, Radio, Slider and Range slider filters Results grouping by category, post type or content type Load more and Inifinite scroll 100+ Themes – Fully configurable and editable – with theme customizer & preview window 4 layouts: Vertical, Horizontal, Polaroid and Isotopic (with pagination) 400+ Admin options Google keyword suggestions and autocomplete Compatibility options and features Caching options & Search statistics Keyword Highlighting & more… Highly compatible and responsive Full Features List Testimonials “Beyond the live search, it also makes your search much more complete. You’ll be able to include custom fields, comments, and more in your search index.” – Ben Pines – Elementor “Consider this plugin if you’re looking for a professional live search offering.” – Tom Ewer – WPMU Dev “Ajax Search Pro plugin gives you a live Ajax search, so much comfortable search experience” – Dragan Nikolic – Thematosoup “As the name suggests, the core value of Ajax Search Pro is the ability to add Ajax live search to WordPress.” – Colin Newcomer – aThemes