<?php
/**
 * Plugin Name: SkyNet Smart Favorites
 * Description: Wishlist for WooCommerce — multiple lists, guest wishlists, AJAX add to cart, and a full storefront wishlist page.
 * Version:     1.0.3
 * Author:      SkyNet
 * Author URI:  https://skynetsol.com
 * Text Domain: skynet-smart-favorites
 * Domain Path: /languages
 * License: GPLv2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Requires at least: 6.0
 * Tested up to: 7.0
 * Requires PHP: 7.4
 * WC requires at least: 8.0
 * WC tested up to: 10.7
 *
 * @package SKYNSMFA_Smart_Favorites
 *
 * Naming: options/transients/AJAX/hooks use the skynsmfa_ prefix; PHP constants use SKYNSMFA_* ;
 * admin ?page= slug is SKYNSMFA_ADMIN_PAGE_SLUG. Text domain matches the plugin directory.
 */

declare( strict_types=1 );

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

define( 'SKYNSMFA_VERSION', '1.0.3' );
define( 'SKYNSMFA_PATH', plugin_dir_path( __FILE__ ) );
define( 'SKYNSMFA_URL', plugin_dir_url( __FILE__ ) );
define( 'SKYNSMFA_FILE', __FILE__ );
/** Admin screen query arg ?page= value (must stay prefixed; do not use the plugin folder name here). */
define( 'SKYNSMFA_ADMIN_PAGE_SLUG', 'skynsmfa' );

require_once SKYNSMFA_PATH . 'includes/class-plugin.php';

register_activation_hook( __FILE__, array( 'SKYNSMFA\\Wishlist\\Plugin', 'activate' ) );
add_action( 'before_woocommerce_init', array( 'SKYNSMFA\\Wishlist\\Plugin', 'declare_wc_compatibility' ) );
add_action( 'plugins_loaded', array( 'SKYNSMFA\\Wishlist\\Plugin', 'boot' ) );
