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 |
---|---|
2409 | * attributes which are also compatible with the REST API, in order to be able to |
2410 | * implement identical queries on both sides. |
2411 | * |
2412 | * @since 6.1.0 |
2413 | * |
2414 | * @param array $query Array containing parameters for `WP_Query` as parsed by the block context. |
2415 | * @param WP_Block $block Block instance. |
2416 | * @param int $page Current query's page. |
2417 | */ |
2418 | return apply_filters( 'query_loop_block_query_vars', $query, $block, $page ); |
2419 | } |
2420 |
|
2421 | /** |
2422 | * Helper function that returns the proper pagination arrow HTML for |
2423 | * `QueryPaginationNext` and `QueryPaginationPrevious` blocks based |
2424 | * on the provided `paginationArrow` from `QueryPagination` context. |
2425 | * |
2426 | * It's used in QueryPaginationNext and QueryPaginationPrevious blocks. |
2427 | * |