get_comment
Fires after a comment is retrieved.
Использование
add_filter( 'get_comment', 'wp_kama_get_comment_filter' ); /** * Function for `get_comment` filter-hook. * * @param WP_Comment $_comment Comment data. * * @return WP_Comment */ function wp_kama_get_comment_filter( $_comment ){ // filter... return $_comment; }
- $_comment(WP_Comment)
- Comment data.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
get_comment
wp-includes/comment.php 225
$_comment = apply_filters( 'get_comment', $_comment );