WPDev.one
Core Function
View Source on Trac ↗

rest_is_boolean()

rest_is_boolean( mixed $maybe_bool )

Determines if a given value is boolean-like.

Parameters 1 required

Name / Type Description
(bool

| string) $maybe_bool The value being evaluated.

Required

Return Value

(bool)
True if a boolean, otherwise false.

Function Information

Since Version
4.7.0
Source File
wp-includes/rest-api.php
Advertisement