WP_HTTP_Polling_Sync_Server::validate_request( WP_REST_Request $request ): true|WP_Error

In this article

Validates that the request body does not exceed the maximum allowed size.

Description

Runs as the route-level validate_callback, after per-arg schema validation has already passed.

Parameters

$requestWP_REST_Requestrequired
The REST request.

Return

true|WP_Error True if valid, WP_Error if the body is too large.

Source

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.