manage_comments_custom_column

動作鉤子
do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID )
引數
  • (string) $column_name The custom column's name.
    Required:
  • (string) $comment_id The comment ID as a numeric string.
    Required:
定義位置
相關勾子
manage_posts_custom_columnmanage_themes_custom_columnmanage_users_custom_columnmanage_media_custom_columnmanage_pages_custom_column
相關方法
get_comment_author_linkget_comment_countget_comment_author_urlget_comment_pages_countget_comment_author_url_linkget_comments_link
引入
2.8.0
棄用
-

manage_comments_custom_column: 這個函式是一個自定義列回撥,用於在WordPress的”評論”管理介面顯示評論資料。自定義列可以被新增到”評論”螢幕上,以顯示關於評論的額外資訊,如評論作者、文章標題或日期。manage_comments_custom_column函式用來決定每條評論的每個自定義列中應該顯示什麼資料。

當單行顯示預設的列輸出時觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID );
do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID );
do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID );

常見問題

FAQs
檢視更多 >