| 1 |
<?php |
| 2 |
declare(strict_types=1); |
| 3 |
|
| 4 |
namespace RankingCoach; |
| 5 |
|
| 6 |
// If this file is called directly, abort. |
| 7 |
if ( !defined('ABSPATH') ) { |
| 8 |
exit('Direct access denied.'); |
| 9 |
} |
| 10 |
|
| 11 |
/** |
| 12 |
* Professional WordPress SEO Plugin |
| 13 |
* |
| 14 |
* This is the main plugin file that initializes the SEO plugin. |
| 15 |
* It defines plugin metadata, sets up necessary constants, and bootstraps the plugin. |
| 16 |
* |
| 17 |
* @link https://www.rankingcoach.com |
| 18 |
* @package BeyondSEO |
| 19 |
* |
| 20 |
* @wordpress-plugin |
| 21 |
* Plugin Name: BeyondSEO |
| 22 |
* Description: Get found online with AI SEO, listings, reviews, social media, and Google Ads in one WordPress plugin. For SMBs & web professionals. |
| 23 |
* Version: 1.3.4 |
| 24 |
* RcAPI Version: v1 |
| 25 |
* WpAPI Version: v1 |
| 26 |
* Requires at least: 6.5 |
| 27 |
* Author: rankingCoach |
| 28 |
* Author URI: https://grow.rankingcoach.com/wordpress?utm_source=wordpress-plugin&utm_medium=plugin&utm_campaign=beyondseo&utm_content=by-rankingcoach |
| 29 |
* Tested up to: 7.1 |
| 30 |
* Requires PHP: 8.0 |
| 31 |
* License: GPL v2 or later |
| 32 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 33 |
* Text Domain: beyondseo |
| 34 |
* Domain Path: /languages/ |
| 35 |
* Tags: SEO, Google rankings, marketing, online visibility |
| 36 |
* Requires WP API: true |
| 37 |
* |
| 38 |
* The plugin is free software: you can redistribute it and/or modify |
| 39 |
* it under the terms of the GNU General Public License as published by |
| 40 |
* the Free Software Foundation, either version 2 of the License, or |
| 41 |
* any later version. |
| 42 |
* |
| 43 |
* The plugin is distributed in the hope that it will be useful, |
| 44 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 45 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 46 |
* GNU General Public License for more details. |
| 47 |
* |
| 48 |
* You should have received a copy of the GNU General Public License. |
| 49 |
* If not, see https://www.rankingcoach.com/en-us/wordpress. |
| 50 |
*/ |
| 51 |
|
| 52 |
defined('RANKINGCOACH_FILE') || define('RANKINGCOACH_FILE', __FILE__); |
| 53 |
defined('RANKINGCOACH_PLUGIN_DIR') || define('RANKINGCOACH_PLUGIN_DIR', plugin_dir_path(__FILE__)); |
| 54 |
|
| 55 |
/** |
| 56 |
* Include the core plugin class file |
| 57 |
*/ |
| 58 |
require_once RANKINGCOACH_PLUGIN_DIR . 'vendor/autoload.php'; |
| 59 |
require_once RANKINGCOACH_PLUGIN_DIR . 'inc/Core/Plugin/constants.php'; |
| 60 |
require_once RANKINGCOACH_PLUGIN_DIR . 'inc/Core/Plugin/functions.php'; |
| 61 |
require_once RANKINGCOACH_PLUGIN_DIR . 'inc/Core/Plugin/safe-polyfills.php'; |
| 62 |
|
| 63 |
/** |
| 64 |
* Load the plugin's core functionality |
| 65 |
* This includes the main plugin class and any other necessary files. |
| 66 |
*/ |
| 67 |
|
| 68 |
use Exception; |
| 69 |
use RankingCoach\Inc\Core\Plugin\RankingCoachPlugin; |
| 70 |
|
| 71 |
/** |
| 72 |
* Bootstrap and initialize the plugin |
| 73 |
* |
| 74 |
* This self-executing anonymous function initializes the plugin and handles any |
| 75 |
* exceptions that might occur during the initialization process. |
| 76 |
*/ |
| 77 |
(function() { |
| 78 |
try { |
| 79 |
// Initialize the plugin |
| 80 |
RankingCoachPlugin::instance()->initialize(); |
| 81 |
} catch (Exception $e) { |
| 82 |
// Handle and render any exceptions that occur during initialization |
| 83 |
beyondseo_rcren($e); |
| 84 |
} |
| 85 |
})(); |
| 86 |
|
| 87 |
|