Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]

WordPress as a project has extreme commitment to backwards compatibility. Whatever new things you add the old things need to work still. Whatever things you change still need to work in old way as well. So regardless of how WP started as non–MVC application, it cannot become one without retaining all of its non–MVC ways. … Read more

Customizer API and add_panel(). Panel doesn’t show

You want to add_setting and add_control to your panel to work. For example: function panel($wp_customize){ $wp_customize->add_panel(‘some_panel’,array( ‘title’=>’Panel1’, ‘description’=> ‘This is panel Description’, ‘priority’=> 10, )); $wp_customize->add_section(‘section’,array( ‘title’=>’section’, ‘priority’=>10, ‘panel’=>’some_panel’, )); $wp_customize->add_setting(‘setting_demo’,array( ‘defaule’=>’a’, )); $wp_customize->add_control(‘contrl_demo’,array( ‘label’=>’Text’, ‘type’=>’text’, ‘section’=>’section’, ‘settings’=>’setting_demo’, ));} add_action(‘customize_register’,’panel’);