Hooks::filter_tribe_save_template_option( $options, string $option_id )
Overwrite the template option on save if FSE is active.
Contents
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.
Return
(TECEventsEditorFull_Sitearray<string,) mixed> $options The array of values to save. In the format option key => value.
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; }
Changelog
Version | Description |
---|---|
5.14.2 | Introduced. |