Tribe__Events__Validator__Base::is_event_category( mixed $category )
Whether the event category exists or not.
Contents
Parameters
- $category
-
(mixed) (Required) Either a single event category
term_idorslugor an array ofterm_ids andslugs
Return
(bool)
Source
File: src/Tribe/Validator/Base.php
public function is_event_category( $category ) {
return $this->is_term_of_taxonomy( $category, Tribe__Events__Main::TAXONOMY );
}
Changelog
| Version | Description |
|---|---|
| 4.6 | Introduced. |