# wpfunnels/3.11.0/includes/core/compatibility/theme/class-wpfnl-theme-compatible.php

WPFunnels – Funnel Builder for WooCommerce with Checkout &amp; One Click Upsell, version 3.11.0. 56 lines.

- Page: https://pluginprobe.com/plugins/wpfunnels/3.11.0/code/includes/core/compatibility/theme/class-wpfnl-theme-compatible.php
- Raw: https://pluginprobe.com/plugins/wpfunnels/3.11.0/raw/includes/core/compatibility/theme/class-wpfnl-theme-compatible.php
- Modified: 2023-07-10T05:10:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpfunnels/3.11.0/code/includes/core/compatibility/theme/class-wpfnl-theme-compatible.php#L10-L20`.

```php
<?php
/**
 * Theme Compatibility
 * 
 * @package
 */
namespace WPFunnels\Compatibility\Theme;

use WPFunnels\Wpfnl_functions;
use WPFunnels\Traits\SingletonTrait;


class Wpfnl_Theme_Compatibility {


    /**
     * Init all supported theme class
     *  
     */
    public function init_classes(){
        $themes = $this->get_all_compatible_themes();
        if( is_array( $themes ) ){
            foreach( $themes as $theme ){
                if( isset( $theme['class_name'] )  ){
                    $class_name = "WPFunnels\\Compatibility\\Theme\\".$theme['class_name'];
                    if (class_exists(ucfirst($class_name))) {
                        $class_name::getInstance()->init();
                    }
                }
            }
        }
    }



    /**
     * Compatible themes
     */
    public function get_all_compatible_themes(){
        $themes = [
            [
                'name'          => 'Flatsome',
                'class_name'    => 'Wpfnl_Flatsome_Compatibility'
            ],
            [
                'name'          => 'TwentyTwentyTwo',
                'class_name'    => 'Wpfnl_Twenty_Twenty_Two_Compatibility'
            ],
            [
                'name'          => 'TwentyTwentyThree',
                'class_name'    => 'Wpfnl_Twenty_Twenty_Three_Compatibility'
            ],
        ];
        return $themes;
    }
}
```
