* @license GPL-2.0+ * @link https://wpadpresso.com * * @wordpress-plugin * Plugin Name: AdPresso * Description: Manage and optimize your ads in WordPress * Version: 0.5.1 * Plugin URI: https://wpadpresso.com * Author: AdPresso * Text Domain: adpresso * Domain Path: /languages * License: GPLv2 or later * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Requires at least: 6.0 * Requires PHP: 8.0 */ use AdPresso\Autoloader; use AdPresso\Plugin; if ( ! defined( 'ABSPATH' ) ) exit; if ( defined( 'ADPRESSO_FILE' ) ) { return; } define( 'ADPRESSO_FILE', __FILE__ ); define( 'ADPRESSO_VERSION', '0.5.1' ); require_once __DIR__ . '/includes/class-autoloader.php'; Autoloader::get()->initialize(); if ( ! function_exists( 'adpresso' ) ) { /** * Returns the main instance of AdPresso. * * @return Plugin */ function adpresso(): Plugin { return Plugin::get(); } } add_action( 'plugins_loaded', static function() { adpresso()->boot(); do_action( 'adpresso.loaded', adpresso() ); } );