rest_request_after_callbacks

rest_request_after_callbacks

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('rest_request_after_callbacks') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 1255
    		 *                                                                   Usually a WP_REST_Response or WP_Error.
    		 * @param array                                            $handler  Route handler used for the request.
    		 * @param WP_REST_Request                                  $request  Request used to generate the response.
    		 */
    		$response = apply_filters( 'rest_request_after_callbacks', $response, $handler, $request );
    
    		if ( is_wp_error( $response ) ) {
    			$response = $this->error_to_response( $response );
    		} else {
    			$response = rest_ensure_response( $response );
    		}
    

See this hook used in plugins: