Tribe__Tickets__Theme_Compatibility::is_compatibility_required()
Checks if theme needs a compatibility fix.
Return
(boolean) Whether compatibility is required.
Source
File: src/Tribe/Theme_Compatibility.php
public function is_compatibility_required() {
$template = strtolower( get_template() );
$stylesheet = strtolower( get_stylesheet() );
// Prevents empty stylesheet or template
if ( empty( $template ) || empty( $stylesheet ) ) {
return false;
}
if ( in_array( $template, $this->get_registered_themes() ) ) {
return true;
}
return false;
}
Changelog
| Version | Description |
|---|---|
| 4.11.4 | Introduced. |