add_section( 'appointment_pro_feature_section' , array(
'title' => esc_html__('View PRO Details', 'appointment'),
'priority' => 1,
) );
$wp_customize->add_setting(
'upgrade_pro_feature',
array(
'capability' => 'edit_theme_options',
'sanitize_callback'=>'sanitize_text_field'
)
);
$wp_customize->add_control( new Appointment_Pro__Feature_Customize_Control( $wp_customize, 'upgrade_pro_feature', array(
'section' => 'appointment_pro_feature_section',
'setting' => 'upgrade_pro_feature',
))
);
class Appointment_Feature_document_Customize_Control extends WP_Customize_Control {
public $type = 'new_menu';
/**
* Render the control's content.
*/
public function render_content() {
?>
add_setting(
'doc_Review_feature',
array(
'capability' => 'edit_theme_options',
'sanitize_callback'=>'sanitize_text_field'
));
$wp_customize->add_control( new Appointment_Feature_document_Customize_Control( $wp_customize, 'doc_Review_feature', array(
'section' => 'appointment_pro_feature_section',
'setting' => 'doc_Review_feature',
))
);
}
add_action( 'customize_register', 'appointment_pro_feature_customizer' );
?>