WPDev.one
Core Function
View Source on Trac ↗

get_comments_pagination_arrow()

get_comments_pagination_arrow( mixed $block, mixed $pagination_type = 'next' )

Helper function that returns the proper pagination arrow HTML for

Parameters 2 required

Name / Type Description
$block
WP_Block

Block instance.

Required
string

$pagination_type Optional. Type of the arrow we will be rendering. Accepts 'next' or 'previous'. Default 'next'.

Required

Return Value

((string)
| null) The pagination arrow HTML or null if there is none.

Function Information

Since Version
6.0.0
Source File
wp-includes/blocks.php
Advertisement