wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
get_comment_date › WordPress Function
Od1.5.0
Przestarzałyn/a
› get_comment_date ( $format = '', $comment_id = 0 )
Parametry: (2) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: | |
Dziennik zmian: |
|
Retrieves the comment date of the current comment.
Powiązane Funkcje: get_commentdata, get_comment_time, get_comment_type, get_comment_text, get_comment_id
Źródło
function get_comment_date( $format = '', $comment_id = 0 ) { $comment = get_comment( $comment_id ); $_format = ! empty( $format ) ? $format : get_option( 'date_format' ); $comment_date = mysql2date( $_format, $comment->comment_date ); /** * Filters the returned comment date. * * @since 1.5.0 * * @param string|int $comment_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', $comment_date, $format, $comment ); }