Core Function
View Source on Trac ↗ rest_sanitize_boolean()
rest_sanitize_boolean( mixed $value ) Changes a boolean-like value into the proper boolean value.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (bool | | string | int) $value The value being evaluated. Required |
Return Value
(bool)
Returns the proper associated boolean value.
Function Information
Since Version
4.7.0
Source File
wp-includes/rest-api.php
Advertisement