rest_post_format_search_query

rest_post_format_search_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('rest_post_format_search_query') is found 1 times:

  • /wp-includes/rest-api/search/class-wp-rest-post-format-search-handler.php line 61
    		 *
    		 * @param array           $query_args Key value array of query var to query value.
    		 * @param WP_REST_Request $request    The request used.
    		 */
    		$query_args = apply_filters( 'rest_post_format_search_query', $query_args, $request );
    
    		$found_ids = array();
    		foreach ( $format_slugs as $index => $format_slug ) {
    			if ( ! empty( $query_args['search'] ) ) {
    				$format_string       = get_post_format_string( $format_slug );
    				$format_slug_match   = stripos( $format_slug, $query_args['search'] ) !== false;