• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / Classes / Tribe__Validate / Tribe__Validate::boolean()
Product: Tribe Common

Tribe__Validate::boolean()

sanitizes a field as being a boolean


Source

File: src/Tribe/Validate.php

		public function boolean() {
			$this->value         = (bool) $this->value;
			$this->result->valid = true;
		}

Expand full source code Collapse full source code

The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy