Filter: wu_get_input_override
Filters the raw input body before it is parsed.
Primarily used in unit tests to inject a mock payload without needing to write to php://input. Return a non-null value to bypass the filesystem read entirely.
Parameters
| Name | Type | Description |
|---|---|---|
| $override | mixed | Return a non-null value to use as the input body. For $raw=false, return an object/array; for $raw=true, return a string. |
| $raw | bool | Whether the raw string was requested. |
Since
- 2.0.0
Source
Defined in inc/functions/http.php at line 35