PluginsSupport\RtwpvgSupport::class, 'woo-product-variation-swatches-pro/woo-product-variation-swatches-pro.php' => PluginsSupport\RtwpvsSupport::class, ]; foreach ( $supports as $active_path => $class ) { $is_active = in_array( $active_path, $active_plugin, true ); if ( $is_active && class_exists( $class ) && method_exists( $class, 'instance' ) ) { $class::instance(); } } } /** * Theme Support * * @return void */ public function themes_support() { $themeClass = ucwords( str_replace( [ '_', '-', ' ' ], '', rtsb()->current_theme ) ); $supportClass = apply_filters( 'RadiusTheme/SB/ThemesSupport/Class', [ 'ThemesSupport' => 'RadiusTheme\SB\Controllers\ThemesSupport\\' . $themeClass . '\\ThemeSupport', 'TheTheme' => '\ThemeSupport', ] ); foreach ( $supportClass as $key => $theClass) { $themeSupport = get_theme_file_path('/shopbuilder/ThemeSupport.php'); if ('TheTheme' === $key && file_exists($themeSupport)) { require_once $themeSupport; } if ( class_exists( $theClass ) && method_exists( $theClass, 'instance' ) ) { $theClass::instance(); } } } }