<?php
/**
 * PersonalizeWP Plugin.
 *
 * @package   PersonalizeWP
 * @copyright Copyright (C) 2020-2026, Filter - support@personalizewp.com
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 or higher
 *
 * @wordpress-plugin
 * Plugin Name:       PersonalizeWP
 * Plugin URI:        https://personalizewp.com/
 * Description:       Add powerful personalization features to your WordPress site. Show different content to different visitors based on their behavior, profile, location, and more.
 * Version:           3.5.3
 * Author:            Filter
 * Author URI:        https://filter.agency/
 * Requires at least: 6.4.0
 * Requires PHP:      7.4
 * License:           GPL v3
 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
 * Text Domain:       personalizewp
 * Domain Path:       /languages/
 *
 * PersonalizeWP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * PersonalizeWP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with PersonalizeWP. If not, see <http://www.gnu.org/licenses/>.
 */

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

/**
 * Current plugin version.
 */
define( 'PERSONALIZEWP_VERSION', '3.5.3' );

// Load autoloader.
require __DIR__ . '/includes/class-autoloader.php';
new PersonalizeWP\Autoloader( __DIR__ );

register_activation_hook( __FILE__, [ 'PersonalizeWP\Activator', 'activate' ] );
register_deactivation_hook( __FILE__, [ 'PersonalizeWP\Deactivator', 'deactivate' ] );

/**
 * Returns the main instance of PersonalizeWP.
 *
 * @since 1.0.0
 * @return \PersonalizeWP\PersonalizeWP
 */
function personalizewp() {
	return \PersonalizeWP\PersonalizeWP::instance();
}
\PersonalizeWP\PersonalizeWP::instance( __FILE__ )->setup();
