WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 103 | * @type boolean $no_found_rows Whether to return found rows data. Default true. |
| 104 | * @type boolean $update_post_meta_cache Whether to update post meta cache. Default false. |
| 105 | * @type boolean $update_post_term_cache Whether to update post term cache. Default false. |
| 106 | * @type int $posts_per_page Number of posts to return. Default 10. |
| 107 | * @type string $post_type Type of post to return. |
| 108 | * @type string $s Search query. |
| 109 | * @type array $search_columns Which post table columns to query. |
| 110 | * } |
| 111 | */ |
| 112 | $query_args = apply_filters( 'wp_ajax_menu_quick_search_args', $query_args ); |
| 113 | $args = array_merge( $args, $query_args ); |
| 114 | |
| 115 | if ( isset( $post_type_obj->_default_query ) ) { |
| 116 | $args = array_merge( $args, (array) $post_type_obj->_default_query ); |
| 117 | } |
| 118 | |
| 119 | $search_results_query = new WP_Query( $args ); |
| 120 | if ( ! $search_results_query->have_posts() ) { |
| 121 | return; |