wp_validate_boolean


wp_validate_boolean ( $var )

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

Description

Filter/validate a variable as a boolean.

Alternative to filter_var( $var, 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