id || !current_user_can('activate_plugins')) { return; } echo '

'; printf( /* translators: %s: the PHP version the site is running */ esc_html__('CrewCommerce requires PHP 7.4 or higher. This site is running PHP %s — please ask your host to upgrade.', 'crewcommerce'), esc_html(PHP_VERSION) ); echo '

'; }); return; } define('CREWCOMMERCE_VERSION', '1.0.0'); // The plugin file WordPress activates: this one, or CrewCommerce Pro's when // this code runs inside Pro. if (!defined('CREWCOMMERCE_PLUGIN_FILE')) { define('CREWCOMMERCE_PLUGIN_FILE', __FILE__); } define('CREWCOMMERCE_PLUGIN_DIR', plugin_dir_path(__FILE__)); define('CREWCOMMERCE_PLUGIN_URL', plugin_dir_url(__FILE__)); // Bump whenever a My Account endpoint registered by this plugin is added or // removed, so already-active sites re-flush their rewrite rules. define('CREWCOMMERCE_ENDPOINTS_VERSION', '3'); // Bump when a table changes. define('CREWCOMMERCE_SCHEMA_VERSION', '1.0'); require_once CREWCOMMERCE_PLUGIN_DIR . 'includes/class-crewcommerce.php'; CrewCommerce::get_instance();