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:

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.

Related Functions

get_the_comments_pagination, the_comments_pagination, get_query_pagination_arrow, get_the_comments_navigation, get_the_posts_pagination

Top Google Results

User discussions

wpseek mobile