5.6 * Requires at least: > 3.9 * Tested up to: 6.5.0 */ namespace Actirise; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } if ( ! defined( 'ACTIRISE_VERSION' ) ) { define( 'ACTIRISE_VERSION', '2.3.6' ); } if ( ! defined( 'ACTIRISE_FILE' ) ) { define( 'ACTIRISE_FILE', __FILE__ ); } if ( ! defined( 'ACTIRISE_DIR' ) ) { define( 'ACTIRISE_DIR', plugin_dir_path( __FILE__ ) ); } if ( ! defined( 'ACTIRISE_BASENAME' ) ) { define( 'ACTIRISE_BASENAME', plugin_basename( __FILE__ ) ); } if ( ! defined( 'ACTIRISE_URL' ) ) { define( 'ACTIRISE_URL', plugin_dir_url( __FILE__ ) ); } if ( ! defined( 'ACTIRISE_PREFIX' ) ) { define( 'ACTIRISE_PREFIX', 'ACTIRISE_' ); } if ( ! defined( 'ACTIRISE_TEMPLATES_DIR' ) ) { define( 'ACTIRISE_TEMPLATES_DIR', ACTIRISE_DIR . 'templates' ); } if ( ! defined( 'ACTIRISE_COMPONENTS_DIR' ) ) { define( 'ACTIRISE_COMPONENTS_DIR', ACTIRISE_DIR . 'template-components/' ); } if ( ! defined( 'ACTIRISE_URL_API' ) ) { define( 'ACTIRISE_URL_API', 'https://api.actirise.com/v1.0/' ); // define( 'ACTIRISE_URL_API', 'https://api.actirise.com/v1.0/' ); } if ( ! defined( 'ACTIRISE_URL_FLASHBID' ) ) { define( 'ACTIRISE_URL_FLASHBID', 'https://www.flashb.id/' ); } if ( ! defined( 'ACTIRISE_CRON' ) ) { $cron = 'true'; if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) { $cron = 'false'; } if ( defined( 'ALTERNATE_WP_CRON' ) && ALTERNATE_WP_CRON ) { $cron = 'true'; } /** @const string ACTIRISE_CRON */ define( 'ACTIRISE_CRON', $cron ); } $autoload = ACTIRISE_DIR . 'vendor/autoload.php'; if ( ! file_exists( $autoload ) ) { return; } require_once $autoload; use Actirise\Includes\Core; register_activation_hook( __FILE__, array( 'Actirise\Includes\Activator', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'Actirise\Includes\Desactivator', 'desactivate' ) ); /** * Run plugin * * @since 2.0.0 * @return void */ function actirise_run() { $plugin = new Core(); $plugin->run(); } actirise_run();