
如何在XAMPP中更改数据库MySQL密码
get_comment_date ( $format = '', $comment_ID = 0 )
get_comment_date – 这个函数返回评论发布的日期,根据WordPress管理员的日期和时间设置格式化。它接受评论的ID和可选的日期格式字符串作为参数。
检索当前评论的评论日期。
function get_comment_date( $format = '', $comment_ID = 0 ) { $comment = get_comment( $comment_ID ); $_format = ! empty( $format ) ? $format : get_option( 'date_format' ); $date = mysql2date( $_format, $comment->comment_date ); /** * Filters the returned comment date. * * @since 1.5.0 * * @param string|int $date Formatted date string or Unix timestamp. * @param string $format PHP date format. * @param WP_Comment $comment The comment object. */ return apply_filters( 'get_comment_date', $date, $format, $comment ); }