Tribe__Tickets__Attendee_Registration__Template::theme_has_compatibility_fix( string $theme = null )
Checks if theme needs a compatibility fix
Contents
Parameters
- $theme
-
(string) (Optional) Name of template from WP_Theme->Template, defaults to current active template
Default value: null
Return
(mixed)
Source
File: src/Tribe/Attendee_Registration/Template.php
public function theme_has_compatibility_fix( $theme = null ) {
// Defaults to current active theme
if ( null === $theme ) {
$theme = get_stylesheet();
}
// Return if the current theme is part of the ones we've compatibility for
return in_array( $theme, $this->themes_with_compatibility_fixes );
}
Changelog
| Version | Description |
|---|---|
| 4.9 | Introduced. |