Don't miss our holiday offer - 20% OFF!
Don't miss our holiday offer - 20% OFF!
namespace FRFreeVendor; /** * @var string $plugin_version * @var string $plugin_name * @var string $plugin_class_name * @var string $plugin_text_domain * @var string $plugin_dir * @var string $plugin_file * @var array $requirements * @var string $product_id */ if (!defined('ABSPATH')) { exit; // It is better to use 'exit' for better clarity than 'die'. } // Check PHP version compatibility if (PHP_VERSION_ID >= 50300) { // Load Composer autoload if PHP version is >= 5.3 if (file_exists($plugin_dir . '/vendor/autoload.php')) { require_once $plugin_dir . '/vendor/autoload.php'; } else { throw new \RuntimeException('Autoload file not found.'); } // Ensure SimpleFactory class exists before creating the object if (class_exists('\FRFreeVendor\WPDesk\Plugin\Flow\Initialization\Simple\SimpleFactory')) { // Create an instance of SimpleFactory $plugin_init_factory = new \FRFreeVendor\WPDesk\Plugin\Flow\Initialization\Simple\SimpleFactory(true); } else { throw new \RuntimeException('SimpleFactory class not found.'); } } // Fallback to the PHP 5.2 initialization file for older versions require dirname(__FILE__) . '/plugin-init-php52.php';
Don't miss our holiday offer - 20% OFF!