get_comment

get_comment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_comment') is found 1 times:

  • /wp-includes/comment.php line 225
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    * @since 2.3.0
     *
     * @param WP_Comment $_comment Comment data.
     */
    $_comment = apply_filters( 'get_comment', $_comment );
     
    if ( OBJECT === $output ) {
        return $_comment;
    } elseif ( ARRAY_A === $output ) {
        return $_comment->to_array();
    } elseif ( ARRAY_N === $output ) {

See this hook used in plugins: