. * * @since 1.0.0 * @author All in One SEO * @license GPL-3.0+ * @package AIOSEO\BrokenLinkChecker * @copyright Copyright © 2025, All in One SEO */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! defined( 'AIOSEO_BROKEN_LINK_CHECKER_PHP_VERSION_DIR' ) ) { define( 'AIOSEO_BROKEN_LINK_CHECKER_PHP_VERSION_DIR', basename( dirname( __FILE__ ) ) ); } require_once dirname( __FILE__ ) . '/app/init/init.php'; // Check if this plugin should be disabled. if ( aioseo_blc_is_plugin_disabled() ) { return; } require_once dirname( __FILE__ ) . '/app/init/notices.php'; // We require PHP 7.0 or higher for the whole plugin to work. if ( version_compare( PHP_VERSION, '7.0', '<' ) ) { add_action( 'admin_notices', 'aioseo_broken_link_checker_php_notice' ); // Do not process the plugin code further. return; } // We require WP 5.7+ for the whole plugin to work. global $wp_version; // phpcs:ignore Squiz.NamingConventions.ValidVariableName if ( version_compare( $wp_version, '5.7', '<' ) ) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName add_action( 'admin_notices', 'aioseo_broken_link_checker_wordpress_notice' ); // Do not process the plugin code further. return; } // Plugin constants. if ( ! defined( 'AIOSEO_BROKEN_LINK_CHECKER_DIR' ) ) { define( 'AIOSEO_BROKEN_LINK_CHECKER_DIR', __DIR__ ); } if ( ! defined( 'AIOSEO_BROKEN_LINK_CHECKER_FILE' ) ) { define( 'AIOSEO_BROKEN_LINK_CHECKER_FILE', __FILE__ ); } // Define the class and the function. require_once dirname( __FILE__ ) . '/app/BrokenLinkChecker.php'; aioseoBrokenLinkChecker();