widget_comments_args

過濾鉤子
引數
  • (array) $comment_args An array of arguments used to retrieve the recent comments.
    Required:
    Default:
  • (array) $instance Array of settings for the current widget.
    Required:
定義位置
相關勾子
wp_list_comments_argswidget_posts_argswidget_pages_argswidget_links_argswidget_nav_menu_args
相關方法
get_comment_classget_commentsget_comment_authorget_comments_numberget_comment_metaget_comment_date
引入
4.9.0
棄用
-

widget_comments_args是 WordPress 中的過濾器鉤子,它允許開發人員修改在查詢最近評論小工具的評論時使用的引數。此鉤子用於最近評論小工具的上下文中,該小工具顯示 WordPress 站點上的最近評論列表。

過濾最近評論小工具的引數。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
apply_filters(
apply_filters(
apply_filters(

常見問題

FAQs
檢視更多 >