add_section( 'upgrade_premium', array( 'title' => __('Upgrade to Premium','fabify'), 'description' =>'', ) ); /*========================================= Buttons =========================================*/ class WP_Buttons_Customize_Control extends WP_Customize_Control { public $type = 'upgrade_premium'; function render_content() { ?>
add_setting( 'premium_info_buttons', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'specia_sanitize_text', ) ); $wp_customize->add_control( new WP_Buttons_Customize_Control( $wp_customize, 'premium_info_buttons', array( 'section' => 'upgrade_premium', 'setting' => 'premium_info_buttons', )) ); } add_action( 'customize_register', 'fabify_premium_setting',999 ); ?>