<?php
/**
 * Plugin Name: Majed Arabic Demo Content
 * Description: Import ready-made Arabic or English articles and WooCommerce demo products with local images and downloads.
 * Version: 1.2.0
 * Author: Majed Bannani
 * Author URI: https://profiles.wordpress.org/majedbannani/
 * Text Domain: majed-arabic-demo-content
 * Domain Path: /languages
 * Requires at least: 6.2
 * Requires PHP: 7.4
 * License: GPLv2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 */
defined( 'ABSPATH' ) || exit;
define( 'MADC_PATH', plugin_dir_path( __FILE__ ) );
define( 'MADC_URL', plugin_dir_url( __FILE__ ) );
define( 'MADC_VERSION', '1.2.0' );
require_once MADC_PATH . 'includes/class-madc-importer.php';
require_once MADC_PATH . 'includes/class-madc-cleanup.php';
require_once MADC_PATH . 'includes/class-madc-admin.php';
add_action( 'init', static function () {
    load_plugin_textdomain( 'majed-arabic-demo-content', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); // phpcs:ignore PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound -- Required for bundled Arabic on sideloaded installations and WordPress 6.2 before directory language packs exist.
} );
add_action( 'plugins_loaded', static function () { new MADC_Admin(); } );
