manage_comments_nav

動作鉤子
do_action( 'manage_comments_nav', $comment_status, $which )
引數
  • (string) $comment_status The comment status name. Default 'All'.
    Required:
  • (string) $which The location of the extra table nav markup: 'top' or 'bottom'.
    Required:
定義位置
相關勾子
get_comments_linkmanage_comments_custom_columnrestrict_manage_commentsget_comment_linkget_comment_date
相關方法
get_comments_linkget_commentsnext_comments_linkget_comment_dateget_comment_linkhave_comments
引入
5.6.0
棄用
-

manage_comments_nav: 這個函式用來顯示WordPress中”評論”管理螢幕的導航控制元件。評論”螢幕顯示網站上的評論列表,這個函式負責渲染導航控制元件,使使用者能夠在評論列表中分頁。

在評論型別的篩選器提交按鈕後觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'manage_comments_nav', $comment_status, $which );
do_action( 'manage_comments_nav', $comment_status, $which );
do_action( 'manage_comments_nav', $comment_status, $which );

常見問題

FAQs
檢視更多 >