Tribe__Events__Pro__Main::load_widget_assets_on_block_editor( boolean $load_assets, string $hook )

Load widget assets on block editor pages.


Parameters

$load_assets

(boolean) (Required) Whether to load widget assets or not.

$hook

(string) (Required) A string of the current page php file.


Top ↑

Return

(boolean) Whether to load the widget assets or not.


Top ↑

Source

File: src/Tribe/Main.php

		public function load_widget_assets_on_block_editor( $load_assets, $hook ) {
			if ( is_admin() && get_current_screen()->is_block_editor ) {
				return true;
			}

			return $load_assets;
		}

Top ↑

Changelog

Changelog
Version Description
5.11.1 Introduced.