Glossary Term
rest_convert_error_to_response()
3 tags
1 category
rest_convert_error_to_response() — Converts an error to a response object. This iterates over all error codes and messages to change it into a flat array. This enables simpler client behavior, as it is represented as a list in JSON rather than an object/map.
Inputs: $error (WP_Error): WP_Error instance.
Returns WP_REST_Response: List of associative arrays with code and message keys.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
