rest_pre_echo_response

rest_pre_echo_response

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('rest_pre_echo_response') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 528
    			 * @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;
    			}