Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: query_loop_block_query_vars

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1368       * attributes which are also compatible with the REST API, in order to be able to
1369       * implement identical queries on both sides.
1370       *
1371       * @since 6.1.0
1372       *
1373       * @param array    $query Array containing parameters for `WP_Query` as parsed by the block context.
1374       * @param WP_Block $block Block instance.
1375       * @param int      $page  Current query's page.
1376       */
1377      return apply_filters( 'query_loop_block_query_vars', $query, $block, $page );
1378 }
1379
1380 /**
1381  * Helper function that returns the proper pagination arrow HTML for
1382  * `QueryPaginationNext` and `QueryPaginationPrevious` blocks based
1383  * on the provided `paginationArrow` from `QueryPagination` context.
1384  *
1385  * It's used in QueryPaginationNext and QueryPaginationPrevious blocks.
1386  *