add_setting('businesswebx_footer_title', [ 'default' => '', 'sanitize_callback' => 'sanitize_text_field', ]); // Add a footer/copyright information section. $wp_customize->add_section( 'businesswebx_footer' , array( 'title' => __( 'Footer', 'businesswebx' ), 'priority' => 105, // Before Widgets. ) ); $wp_customize->add_control( new Businesswp_WYSIWYG_Custom_control( $wp_customize, 'businesswebx_footer_title', array( 'label' => __( 'Footer Title', 'businesswebx' ), 'section' => 'businesswebx_footer', 'settings' => 'businesswebx_footer_title', ) ) ); } add_action( 'customize_register', 'businesswebx_customize_register' ); if ( class_exists( 'WP_Customize_Control' ) ) { /** * TinyMCE Custom Control * * @author Anthony Hortin * @license http://www.gnu.org/licenses/gpl-2.0.html * @link https://github.com/maddisondesigns */ class Businesswp_WYSIWYG_Custom_control extends WP_Customize_Control { /** * The type of control being rendered */ public $type = 'wp_editor'; /** * Enqueue our scripts and styles */ public function enqueue(){ } /** * Render the control in the customizer */ public function render_content(){ ?>