register_section_type( 'AllStore_Customize_Section_Pro' ); $wp_customize->add_section( new AllStore_Customize_Section_Pro( $wp_customize, 'theme_pro', array( 'title' => esc_html__( 'AllStore PRO', 'all-store' ), 'pro_text' => esc_html__( 'Upgrade to PRO', 'all-store' ), 'pro_url' => 'https://themeforest.net/item/allstore-woocommerce-wordpress-shop-theme/19678066?ref=real-web', 'priority' => 1, ) ) ); } } add_action( 'customize_register', 'allstore_customize_register' ); /** * Enqueue style for custom customize control. */ function allstore_customize_enqueue() { wp_enqueue_script( 'allstore-customize', get_template_directory_uri() . '/js/customize.js', array( 'customize-controls' ) ); wp_enqueue_style( 'allstore-customize', get_template_directory_uri() . '/css/customize.css' ); } add_action( 'customize_controls_enqueue_scripts', 'allstore_customize_enqueue' );