get_comment_date

過濾鉤子
apply_filters( 'get_comment_date', $date, $format, $comment )
引數
  • (string|int) $date Formatted date string or Unix timestamp.
    Required:
  • (string) $format PHP date format.
    Required:
  • (WP_Comment) $comment The comment object.
    Required:
定義位置
相關勾子
get_comment_typeget_comment_timeget_comment_textget_comment_idget_comment_author
相關方法
get_comment_dateget_commentdataget_comment_textget_comment_timeget_comment_typeget_comment_id
引入
1.5.0
棄用
-

get_comment_date: 這個函式檢索一個給定評論的日期: 該函式接受一個引數,即評論ID,並返回一個代表日期的字串。

過濾返回的評論日期。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_comment_date', $date, $format, $comment );
return apply_filters( 'get_comment_date', $date, $format, $comment );
return apply_filters( 'get_comment_date', $date, $format, $comment );

常見問題

FAQs
檢視更多 >