PluginProbe ʕ •ᴥ•ʔ
All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic / 4.9.7.2
All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic v4.9.7.2
4.9.7.2 4.9.7.1 4.9.6.2 4.9.6.1 trunk 4.7.8 4.7.9 4.7.9.1 4.8.0 4.8.1 4.8.1.1 4.8.2 4.8.3.1 4.8.3.2 4.8.4.1 4.8.5 4.8.6 4.8.6.1 4.8.7.2 4.8.8 4.8.9 4.9.0 4.9.1 4.9.1.1 4.9.2 4.9.3 4.9.4.1 4.9.5 4.9.5.1
all-in-one-seo-pack / all_in_one_seo_pack.php
all-in-one-seo-pack Last commit date
app 2 weeks ago dist 2 weeks ago languages 2 weeks ago vendor 2 weeks ago all_in_one_seo_pack.php 2 weeks ago readme.txt 2 days ago uninstall.php 2 months ago wpml-config.xml 5 years ago
all_in_one_seo_pack.php
98 lines
1 <?php
2 /**
3 * Plugin Name: All in One SEO
4 * Plugin URI: https://aioseo.com/
5 * Description: SEO for WordPress. Features like XML Sitemaps, SEO for custom post types, SEO for blogs, business sites, ecommerce sites, and much more. More than 100 million downloads since 2007.
6 * Author: All in One SEO Team
7 * Author URI: https://aioseo.com/
8 * Version: 4.9.7.2
9 * Text Domain: all-in-one-seo-pack
10 * Domain Path: /languages
11 * License: GPL-3.0+
12 *
13 * All in One SEO is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 2 of the License, or
16 * any later version.
17 *
18 * All in One SEO is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with AIOSEO. If not, see <https://www.gnu.org/licenses/>.
25 *
26 * @since 4.0.0
27 * @author All in One SEO Team
28 * @package AIOSEO\Plugin
29 * @license GPL-3.0+
30 * @copyright Copyright © 2025, All in One SEO
31 */
32
33 // Exit if accessed directly.
34 if ( ! defined( 'ABSPATH' ) ) {
35 exit;
36 }
37
38 require_once dirname( __FILE__ ) . '/app/init/init.php';
39
40 // Check if this plugin should be disabled.
41 if ( aioseoMaybePluginIsDisabled( __FILE__ ) ) {
42 return;
43 }
44
45 if ( ! defined( 'AIOSEO_PHP_VERSION_DIR' ) ) {
46 define( 'AIOSEO_PHP_VERSION_DIR', basename( dirname( __FILE__ ) ) );
47 }
48
49 require_once dirname( __FILE__ ) . '/app/init/notices.php';
50 require_once dirname( __FILE__ ) . '/app/init/activation.php';
51
52 // We require PHP 7.1 or higher for the whole plugin to work.
53 if ( version_compare( PHP_VERSION, '7.1', '<' ) ) {
54 add_action( 'admin_notices', 'aioseo_php_notice' );
55
56 // Do not process the plugin code further.
57 return;
58 }
59
60 // We require WordPress 5.7 or higher for the whole plugin to work.
61 global $wp_version; // phpcs:ignore Squiz.NamingConventions.ValidVariableName
62 if ( version_compare( $wp_version, '5.7', '<' ) ) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName
63 add_action( 'admin_notices', 'aioseo_wordpress_notice' );
64
65 // Do not process the plugin code further.
66 return;
67 }
68
69 if ( ! defined( 'AIOSEO_DIR' ) ) {
70 define( 'AIOSEO_DIR', __DIR__ );
71 }
72 if ( ! defined( 'AIOSEO_FILE' ) ) {
73 define( 'AIOSEO_FILE', __FILE__ );
74 }
75
76 // Don't allow multiple versions to be active.
77 if ( function_exists( 'aioseo' ) ) {
78 add_action( 'activate_all-in-one-seo-pack/all_in_one_seo_pack.php', 'aioseo_lite_just_activated' );
79 add_action( 'deactivate_all-in-one-seo-pack/all_in_one_seo_pack.php', 'aioseo_lite_just_deactivated' );
80 add_action( 'activate_all-in-one-seo-pack-pro/all_in_one_seo_pack.php', 'aioseo_pro_just_activated' );
81 add_action( 'admin_notices', 'aioseo_lite_notice' );
82
83 // Do not process the plugin code further.
84 return;
85 }
86
87 // We will be deprecating these versions of PHP in the future, so we'll let the user know.
88 // We flag deprecated WP versions in the DeprecatedWordPress class.
89 if ( version_compare( PHP_VERSION, '7.4', '<' ) ) {
90 add_action( 'admin_notices', 'aioseo_php_notice_deprecated' );
91 }
92
93 // Define the class and the function.
94 // The AIOSEOAbstract class is required here because it can't be autoloaded.
95 require_once dirname( __FILE__ ) . '/app/AIOSEOAbstract.php';
96 require_once dirname( __FILE__ ) . '/app/AIOSEO.php';
97
98 aioseo();