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