rest_pre_echo_response

rest_pre_echo_response

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_pre_echo_response') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 538
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    * @param array            $result  Response data to send to the client.
     * @param WP_REST_Server   $server  Server instance.
     * @param WP_REST_Request  $request Request used to generate the response.
     */
    $result = apply_filters( 'rest_pre_echo_response', $result, $this, $request );
     
    // The 204 response shouldn't have a body.
    if ( 204 === $code || null === $result ) {
        return null;
    }