Files
mataba/shop/xshop-core/xshop-core.php
T

34 lines
1.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Plugin Name: XShop Core
* Plugin URI: https://example.com/xshop-core
* Description: Companion plugin for XShop theme – wishlist, compare, Q&A, AJAX search/filter, banners, demo import, and more. Requires XShop theme.
* Version: 1.0.0
* Author: XShop Team
* Author URI: https://example.com
* Text Domain: xshop
* Domain Path: /languages
* Requires at least: 6.4
* Requires PHP: 8.2
* License: Commercial
*/
declare(strict_types=1);
defined('ABSPATH') || exit;
define('XSHOP_CORE_VERSION', '1.0.0');
define('XSHOP_CORE_FILE', __FILE__);
define('XSHOP_CORE_DIR', __DIR__);
define('XSHOP_CORE_URI', plugin_dir_url(__FILE__));
require_once XSHOP_CORE_DIR . '/includes/Core/Plugin.php';
register_activation_hook(__FILE__, ['XShop\Core\Plugin', 'activate']);
register_deactivation_hook(__FILE__, ['XShop\Core\Plugin', 'deactivate']);
add_action('plugins_loaded', function (): void {
load_plugin_textdomain('xshop', false, dirname(plugin_basename(__FILE__)) . '/languages');
XShop\Core\Plugin::instance()->init();
});