Hooks::filter_tribe_save_template_option( $options, string $option_id )

Overwrite the template option on save if FSE is active.

We only support the default events template for now.


Parameters #

(<span class="TECEventsEditorFull_SitearrayTECEventsEditorFull_Sitearray<string,) (Required) mixed> $options The array of values to save. In the format option key => value.

$option_id

(string) (Required) The main option ID.


Top ↑

Return #

(TECEventsEditorFull_Sitearray<string,) mixed> $options The array of values to save. In the format option key => value.


Top ↑

Source #

File: src/Events/Editor/Full_Site/Hooks.php

	public function filter_tribe_save_template_option( $options, $option_id ) {
		if ( tec_is_full_site_editor() ) {
			$options[ 'tribeEventsTemplate' ] = '';
		}

		return $options;
	}

Top ↑

Changelog #

Changelog
Version Description
5.14.2 Introduced.