Scripts
Class Scripts.
Source
File: src/Tribe/Compatibility/Divi/Scripts.php
class Scripts { /** * Disable Divi jQuery Body on Single Events. * * @since 5.3.1 * * @param bool $enabled Whether to disable the jQuery body. * * @return bool Whether to disable the jQuery body. */ public function disable_jquery_body( $enabled ) { if ( ! is_singular( \Tribe__Events__Main::POSTTYPE ) ) { return $enabled; } return false; } }
Changelog
Version | Description |
---|---|
5.3.1 | Introduced. |
Methods
- disable_jquery_body — Disable Divi jQuery Body on Single Events.