/** * The plugin bootstrap file * * @link https://yourwebsite.com * @since 1.0.0 * @package Seo_Content_Assistant_Pro * * @wordpress-plugin * Plugin Name: SEO Content Assistant Pro * Plugin URI: https://yourwebsite.com/seo-content-assistant-pro * Description: A comprehensive SEO content optimization and technical SEO analysis tool. * Version: 1.0.0 * Author: Your Name * Author URI: https://yourwebsite.com * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: seo-content-assistant-pro * Domain Path: /languages */ // If this file is called directly, abort. if (!defined('WPINC')) { die; } /** * Currently plugin version. */ define('SCAP_VERSION', '1.0.0'); /** * Plugin base path. */ define('SCAP_PLUGIN_PATH', plugin_dir_path(__FILE__)); /** * Plugin base URL. */ define('SCAP_PLUGIN_URL', plugin_dir_url(__FILE__)); /** * The code that runs during plugin activation. */ function activate_seo_content_assistant_pro() { require_once SCAP_PLUGIN_PATH . 'includes/class-scap-activator.php'; SCAP_Activator::activate(); } /** * The code that runs during plugin deactivation. */ function deactivate_seo_content_assistant_pro() { require_once SCAP_PLUGIN_PATH . 'includes/class-scap-deactivator.php'; SCAP_Deactivator::deactivate(); } register_activation_hook(__FILE__, 'activate_seo_content_assistant_pro'); register_deactivation_hook(__FILE__, 'deactivate_seo_content_assistant_pro'); /** * Autoload classes. */ spl_autoload_register(function ($class) { // Project-specific namespace prefix $prefix = 'SCAP_'; // Base directory for the namespace prefix $base_dir = SCAP_PLUGIN_PATH . 'includes/'; // Check if the class uses the namespace prefix $len = strlen($prefix); if (strncmp($prefix, $class, $len) !== 0) { return; } // Get the relative class name $relative_class = substr($class, $len); // Replace the namespace prefix with the base directory $file = $base_dir . 'class-' . strtolower(str_replace('_', '-', $relative_class)) . '.php'; // If the file exists, require it if (file_exists($file)) { require $file; } }); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require_once SCAP_PLUGIN_PATH . 'includes/class-scap-core.php'; /** * Load plugin text domain. */ function scap_load_plugin_textdomain() { load_plugin_textdomain( 'seo-content-assistant-pro', false, dirname(plugin_basename(__FILE__)) . '/languages/' ); } /** * Begins execution of the plugin. * * @since 1.0.0 */ function run_seo_content_assistant_pro() { // Initialize the core class $plugin = new SCAP_Core(); // Add text domain loading to init hook with priority 5 add_action('init', 'scap_load_plugin_textdomain', 5); // Initialize the plugin $plugin->init(); } // Start the plugin after all plugins are loaded add_action('plugins_loaded', 'run_seo_content_assistant_pro', 10);
Pamukkale Paragliding, Pamukkale Hot Air Balloon