I’m starting using sage and stuck in a problem envolving namespaces. I have this function:
function scpt_blog() {
if ( ! class_exists( 'Super_Custom_Post_Type' ) )
return;
$trabalhos = new Super_Custom_Post_Type();
}
add_action( 'after_setup_theme', __NAMESPACE__ . '\\scpt_blog' );
But it’s returning this error: Fatal error: Class ‘Roots\Sage\Extras\Super_Custom_Post_Type’ not found in…
This class is from a plugin called super-cpt. How can I point the namespace of this class correctly?