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 |
---|---|
2037 | * attributes which are also compatible with the REST API, in order to be able to |
2038 | * implement identical queries on both sides. |
2039 | * |
2040 | * @since 6.1.0 |
2041 | * |
2042 | * @param array $query Array containing parameters for `WP_Query` as parsed by the block context. |
2043 | * @param WP_Block $block Block instance. |
2044 | * @param int $page Current query's page. |
2045 | */ |
2046 | return apply_filters( 'query_loop_block_query_vars', $query, $block, $page ); |
2047 | } |
2048 |
|
2049 | /** |
2050 | * Helper function that returns the proper pagination arrow HTML for |
2051 | * `QueryPaginationNext` and `QueryPaginationPrevious` blocks based |
2052 | * on the provided `paginationArrow` from `QueryPagination` context. |
2053 | * |
2054 | * It's used in QueryPaginationNext and QueryPaginationPrevious blocks. |
2055 | * |