Tribe__Events__Pro__Integrations__Beaver_Builder__Page_Builder

Compatibility fixes for Beaver Builder Page Builder plugin.


Source #

File: src/Tribe/Integrations/Beaver_Builder/Page_Builder.php

class Tribe__Events__Pro__Integrations__Beaver_Builder__Page_Builder {

	/**
	 * Sets up fixes required for improved compatibility with Page Builder.
	 * Move toward allowing loading of admin scripts on front end when BB editor is active.
	 *
	 * @since 5.14.2
	 */
	public function hook() {
		add_action(
			'wp_enqueue_scripts',
			function() {
				if ( FLBuilderModel::is_builder_active() ) {
					add_filter( 'tribe_allow_widget_on_post_page_edit_screen', '__return_true' );
				}
			}
		);
	}
}

Top ↑

Changelog #

Changelog
Version Description
5.14.2 Introduced.

Top ↑

Methods #

  • hook — Sets up fixes required for improved compatibility with Page Builder.