Tribe__Customizer::add_fse_customizer_link()
Inserts link to TEC Customizer section for FSE themes in admin (left) menu.
Source
File: src/Tribe/Customizer.php
public function add_fse_customizer_link() {
// Exit early if the FSE theme feature isn't present.
if ( ! function_exists( 'gutenberg_is_fse_theme' ) ) {
return;
}
// Exit early if the current theme is not a FSE theme.
if ( ! gutenberg_is_fse_theme() ) {
return;
}
// Add a link to the TEC panel in the Customizer.
add_submenu_page(
'themes.php',
_x( 'Customize The Events Calendar', 'Page title for the TEC Customizer section.', 'tribe-common' ),
_x( 'Customize The Events Calendar', 'Menu item text for the TEC Customizer section link.', 'tribe-common' ),
'edit_theme_options',
esc_url( add_query_arg( 'autofocus[panel]', 'tribe_customizer' , admin_url( 'customize.php' ) ) )
);
}
Changelog
| Version | Description |
|---|---|
| 4.14.8 | Introduced. |