开发者 |
scottsweb
codeforthepeople |
---|---|
更新时间 | 2015年7月4日 05:23 |
PHP版本: | 3.8 及以上 |
WordPress版本: | 4.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp-ajax-search-widget
folder to the /wp-content/plugins/
directoryThe plugin has one filter that allows you adjust the search query parameters:
add_filter('wpasw_query', 'my_wp_query_array');
The plugin also has the following hooks for adding your own content at various points:
wpasw_before_widget
wpasw_after_widget
wpasw_before_results
wpasw_after_results
By placing the following template parts within a /parts/ folder in your theme you can also overwrite the HTML output:
parts/widget-ajax-search-result.php
parts/widget-ajax-search-more.php
parts/widget-ajax-search-fail.php