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, validate_email, wp_validate_redirect

Top Google Results

User discussions

wpseek mobile