get_comment

過濾鉤子
apply_filters( 'get_comment', $_comment )
引數
  • (WP_Comment) $_comment Comment data.
    Required:
定義位置
相關勾子
get_comment_idedit_commentget_comment_typeget_comment_linkget_comment_time
相關方法
get_commentget_commentsget_comment_idedit_commentget_commentdatathe_comment
引入
2.3.0
棄用
-

get_comment: 這個函式根據評論的ID從資料庫中檢索一個評論: 該函式接受一個引數,即評論ID,並返回一個代表該評論的物件。

在檢索到一個評論後觸發。

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

常見問題

FAQs
檢視更多 >