rest_is_boolean
rest_is_boolean ( $maybe_bool )
Parameters:- (bool|string) maybe_bool The value being evaluated.
Returns:- (bool) True if a boolean, otherwise false.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Determines if a given value is boolean-like.