render_block_core_query_pagination() – Renders the `core/query-pagination` block on the server.
You appear to be a bot. Output may be restricted
Description
Renders the core/query-pagination
block on the server.
Usage
$string = render_block_core_query_pagination( $attributes, $content );
Parameters
- $attributes
- ( array ) required – Block attributes.
- $content
- ( string ) required – Block default content.
Returns
string Returns the wrapper for the Query pagination.
Source
File name: wordpress/wp-includes/blocks/query-pagination.php
Lines:
1 to 19 of 19
function render_block_core_query_pagination( $attributes, $content ) { if ( empty( trim( $content ) ) ) { return ''; } $wrapper_attributes = get_block_wrapper_attributes( array( 'role' => 'navigation', 'aria-label' => __( 'Pagination' ), ) ); return sprintf( '<nav %1$s>%2$s</nav>', $wrapper_attributes, $content ); }