WordPress at Your Fingertips
function is not described

WC_Shop_Customizer::add_fse_customize_link() public WC 1.0

For FSE themes add a "Customize WooCommerce" link to the Appearance menu.

FSE themes hide the "Customize" link in the Appearance menu. In WooCommerce we have several options that can currently only be edited via the Customizer. For now, we are thus adding a new link for WooCommerce specific Customizer options.

{} It's a method of the class: WC_Shop_Customizer{}

No Hooks.


null. Nothing.


$WC_Shop_Customizer = new WC_Shop_Customizer();

Code of WC_Shop_Customizer::add_fse_customize_link() WC 5.7.0

public function add_fse_customize_link() {

	// Exit early if the FSE theme feature isn't present or the current theme is not a FSE theme.
	if ( ! function_exists( 'gutenberg_is_fse_theme' ) || function_exists( 'gutenberg_is_fse_theme' ) && ! gutenberg_is_fse_theme() ) {

	// Add a link to the WooCommerce panel in the Customizer.
		__( 'Customize WooCommerce', 'woocommerce' ),
		__( 'Customize WooCommerce', 'woocommerce' ),
		admin_url( 'customize.php?autofocus[panel]=woocommerce' )