Server IP : 172.67.158.161 / Your IP : 3.137.171.114 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/thietke365.net/wp-content/plugins/wordpress-seo/src/conditionals/admin/ |
Upload File : |
<?php // phpcs:ignore Yoast.Files.FileName.InvalidClassFileName -- Reason: this explicitly concerns the Yoast admin. namespace Yoast\WP\SEO\Conditionals\Admin; use Yoast\WP\SEO\Conditionals\Conditional; use Yoast\WP\SEO\Helpers\Current_Page_Helper; /** * Conditional that is only met when on a Yoast SEO admin page. */ class Yoast_Admin_Conditional implements Conditional { /** * Holds the Current_Page_Helper. * * @var Current_Page_Helper */ private $current_page_helper; /** * Constructs the conditional. * * @param \Yoast\WP\SEO\Helpers\Current_Page_Helper $current_page_helper The current page helper. */ public function __construct( Current_Page_Helper $current_page_helper ) { $this->current_page_helper = $current_page_helper; } /** * Returns `true` when on the admin dashboard, update or Yoast SEO pages. * * @return bool `true` when on the admin dashboard, update or Yoast SEO pages. */ public function is_met() { if ( ! \is_admin() ) { return false; } return $this->current_page_helper->is_yoast_seo_page(); } }