| Server IP : 121.121.20.254 / Your IP : 216.73.216.145 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/wordpress-seo-premium/src/ |
Upload File : |
<?php
/**
* WPSEO plugin file.
*
* @package Yoast\WP\SEO\Premium
*/
if ( ! defined( 'WPSEO_PREMIUM_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
use Yoast\WP\SEO\Premium\Main;
/**
* Retrieves the main instance.
*
* @phpcs:disable WordPress.NamingConventions -- Should probably be renamed, but leave for now.
*
* @return Main The main instance.
*/
function YoastSEOPremium() {
// phpcs:enable
static $main;
if ( did_action( 'wpseo_loaded' ) ) {
if ( $main === null ) {
// Ensure free is loaded as loading premium will fail without it.
YoastSEO();
$main = new Main();
$main->load();
}
}
else {
add_action( 'wpseo_loaded', 'YoastSEOPremium' );
}
return $main;
}