<?php
/**
 * Plugin Name: Yoast Bulk Update
 * Plugin URI: https://adipramono.com
 * Description: Import CSV files to bulk update Yoast SEO meta titles and descriptions
 * Version: 1.0.0
 * Author: Adi Pramono
 * Author URI: https://adipramono.com
 * License: GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain: yoast-bulk-update
 */

// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}

// Define plugin constants
define('YBU_PLUGIN_NAME', 'yoast-bulk-update');
define('YBU_PLUGIN_VERSION', '1.0.0');
define('YBU_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('YBU_PLUGIN_URL', plugin_dir_url(__FILE__));
define('YBU_ADMIN_URL', admin_url());

// Load plugin class files
require_once YBU_PLUGIN_DIR . 'includes/class-yoast-bulk-update.php';
require_once YBU_PLUGIN_DIR . 'includes/class-yoast-bulk-update-settings.php';

/**
 * Initialize the plugin
 *
 * @return void
 */
function run_yoast_bulk_update() {
    $plugin = new Yoast_Bulk_Update();
    $plugin->run();
}

// Run the plugin
run_yoast_bulk_update();