| Server IP : 45.77.68.45 / Your IP : 127.0.0.100 Web Server : PHPix/0.2.2 (Caddy compatible) System : wasi wasmer.sh 0.0.0 0.0.0 wasm32 User : ( 1) PHP Version : 8.3.21 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /app/wp-content/plugins/wordpress-seo/src/conditionals/third-party/ |
Upload File : |
<?php
namespace Yoast\WP\SEO\Conditionals\Third_Party;
use Yoast\WP\SEO\Conditionals\Conditional;
use Yoast\WP\SEO\Dashboard\Infrastructure\Integrations\Site_Kit;
/**
* Conditional that is only met when the SiteKit plugin is active.
*/
class Site_Kit_Conditional implements Conditional {
/**
* Site Kit configuration
*
* @var Site_Kit $site_kit
*/
protected $site_kit;
/**
* The constructor.
*
* @param Site_Kit $site_kit The Site Kit configuration object.
*/
public function __construct( Site_Kit $site_kit ) {
$this->site_kit = $site_kit;
}
/**
* Checks whether the SiteKit plugin is active.
*
* @return bool Whether the SiteKit plugin is active.
*/
public function is_met() {
return $this->site_kit->is_enabled();
}
}