Tribe__Events__Pro__Editor::maybe_load_custom_field_assets()

Callback used to load the assets only when the Additional Fields tab is selected


Return

(bool)


Top ↑

Source

File: src/Tribe/Editor.php

	public function maybe_load_custom_field_assets() {
		$screen = get_current_screen();
		if ( $screen === null || $screen->id !== 'tribe_events_page_tribe-common' ) {
			return false;
		}
		$tab = tribe_get_request_var( 'tab' );
		return 'additional-fields' === $tab;
	}

Top ↑

Changelog

Changelog
Version Description
4.5 Introduced.