the_posts_pagination_args

過濾鉤子
apply_filters( 'the_posts_pagination_args', $args )
引數
  • (array) $args { Optional. Default pagination arguments, see paginate_links(). @type string $screen_reader_text Screen reader text for navigation element. Default 'Posts navigation'. @type string $aria_label ARIA label text for the nav element. Default 'Posts'. @type string $class Custom class for the nav element. Default 'pagination'. }
    Required:
定義位置
相關勾子
themes_api_argsthe_post_thumbnail_captionwidget_posts_argsget_the_post_type_descriptionnext_posts_link_attributes
相關方法
the_posts_paginationget_the_posts_paginationthe_comments_paginationthe_posts_navigationget_comments_pagination_arrowget_the_comments_pagination
引入
6.1.0
棄用
-

the_posts_pagination_args是一個過濾鉤,允許你修改用於建立文章分頁連結的引數。它通過一個引數陣列來定義分頁連結的結構和行為,該過濾器允許你改變這些引數來定製分頁。

過濾文章的分頁連結的引數。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$args = apply_filters( 'the_posts_pagination_args', $args );
$args = apply_filters( 'the_posts_pagination_args', $args );
$args = apply_filters( 'the_posts_pagination_args', $args );

常見問題

FAQs
檢視更多 >