wp_list_comments_args

過濾鉤子
apply_filters( 'wp_list_comments_args', $parsed_args )
引數
  • (array) $parsed_args An array of arguments for displaying comments.
    Required:
定義位置
相關勾子
widget_comments_argswp_list_users_argswp_insert_commentwp_list_authors_argswp_set_comment_status
相關方法
wp_list_commentswp_insert_commentwp_set_comment_statuswp_filter_content_tagswp_set_comment_cookieswp_count_comments
引入
4.0.0
棄用
-

wp_list_comments_args:這是 WordPress 內建的一個鉤子,用於定義評論列表的引數。通過使用這個鉤子,您可以自定義評論列表的顯示方式。

過濾用於檢索評論列表的引數。

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

常見問題

FAQs
檢視更多 >