get_comments_pagination_arrow
get_comments_pagination_arrow ( $block, $pagination_type = 'next' )
Parameters:- (WP_Block) block Block instance.
- (string) pagination_type Optional. Type of the arrow we will be rendering. Accepts 'next' or 'previous'. Default 'next'.
Returns:- (string|null) The pagination arrow HTML or null if there is none.
Defined at: - Introduced in WordPress: 6.0.0
- Deprecated in WordPress: —
Description
Helper function that returns the proper pagination arrow HTML for
`CommentsPaginationNext` and `CommentsPaginationPrevious` blocks based on the
provided `paginationArrow` from `CommentsPagination` context.It's used in CommentsPaginationNext and CommentsPaginationPrevious blocks.