chore: complete M1.1 runtime QA and release packaging
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?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();
|
||||
});
|
||||
Reference in New Issue
Block a user