Tribe__Tickets__Attendee_Registration__Template::set_body_classes()
Add and remove body classes.
Return
(void)
Source
File: src/Tribe/Attendee_Registration/Template.php
public function set_body_classes() {
// Bail if we're not on the attendee info page
if ( ! $this->is_on_ar_page() ) {
return;
}
// Remove classes that we don't want/need
add_filter( 'body_class', array( $this, 'remove_body_classes' ) );
// Add classes that we actually want/need
add_filter( 'body_class', array( $this, 'add_body_classes' ) );
// add the theme name to the body class when needed
if ( $this->theme_has_compatibility_fix() ) {
add_filter( 'body_class', array( $this, 'theme_body_class' ) );
}
}
Changelog
| Version | Description |
|---|---|
| 4.9 | Introduced. |