Server IP : 104.21.14.103 / Your IP : 18.188.97.200 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/ |
Upload File : |
<?php namespace Yoast\WP\SEO\Conditionals; use Yoast\WP\SEO\Helpers\Options_Helper; /** * Conditional that is only met when the Open Graph feature is enabled. */ class Open_Graph_Conditional implements Conditional { /** * The options helper. * * @var Options_Helper */ private $options; /** * Open_Graph_Conditional constructor. * * @param Options_Helper $options The options helper. */ public function __construct( Options_Helper $options ) { $this->options = $options; } /** * Returns `true` when the Open Graph feature is enabled. * * @return bool `true` when the Open Graph feature is enabled. */ public function is_met() { return $this->options->get( 'opengraph' ) === true; } }