Fatal error: Uncaught Error: Class 'WPTRT\Customize\Section\Button' not found in...
autoload.php is working fine with other Classes and I'm using the default code from the example:
use WPTRT\Customize\Section\Button;
add_action( 'customize_register', function( $manager ) {
$manager->register_section_type( Button::class );
$manager->add_section(
new Button( $manager, 'themeslug_pro', [
'title' => __( 'ThemeName Pro', 'themeslug' ),
'button_text' => __( 'Go Pro', 'themeslug' ),
'button_url' => 'http://example.com'
] )
);
} );
The strange thing is that only this Button Class is having problems, not other ones.