rest_sanitize_boolean
rest_sanitize_boolean ( $value )
Parameters:- (bool|string|int) value The value being evaluated.
Returns:- (bool) Returns the proper associated boolean value.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Changes a boolean-like value into the proper boolean value.