What is difference between add_theme_support and Theme Customization API?

They’re not directly really related, and do different things, except for a couple of situations. The Customization API is a way of registering settings and controls in the Customizer, and is very flexible. You can use it to add controls for just about anything in your theme. add_theme_support(), on the other hand, lets your theme … Read more

Fatal error: Class WP_Customize_Image_Control not found

Solved by adding use WP_Customize_Image_Control; to inc\Customizer\FeaturedCategories.php: namespace Ivana\Api\Customizer; use WP_Customize_Image_Control; use Ivana\Helpers; class FeaturedCategories { public function register( $wp_customize ) { $this->add_panels( $wp_customize ); $this->add_sections( $wp_customize ); $this->add_settings( $wp_customize ); $this->add_controls( $wp_customize ); } public function add_panels( $wp_customize ) { $wp_customize->add_panel( ‘featured_categories’, [ ‘title’ => ‘Featured Categories’, ‘description’ => ‘I\’m looking for a lady’, … Read more