wp_validate_boolean


wp_validate_boolean ( $value )

Parameters:
  • (mixed) value Boolean value to validate.
Returns:
  • (bool) Whether the value is validated.
Defined at:

Description

Filters/validates a variable as a boolean.Alternative to `filter_var( $value, FILTER_VALIDATE_BOOLEAN )`.

Related Functions

wp_validate_auth_cookie, wp_validate_site_data, validate_file, wpmu_validate_blog_signup, wp_http_validate_url

Top Google Results

User discussions

wpseek mobile