rest_prepare_comment

rest_prepare_comment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_prepare_comment') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php line 1141
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
         * @param WP_REST_Response  $response The response object.
         * @param WP_Comment        $comment  The original comment object.
         * @param WP_REST_Request   $request  Request used to generate the response.
         */
        return apply_filters( 'rest_prepare_comment', $response, $comment, $request );
    }
     
    /**
     * Prepares links for the request.
     *
     * @since 4.7.0