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.7.2

apply_filters('rest_request_after_callbacks') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 1317
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    *                                                                   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: