Yoast\WP\SEO\Conditionals\Third_Party
Wordproof_Integration_Active_Conditional{}
Conditional that is met when the WordProof integration is toggled on.
Хуков нет.
Использование
$Wordproof_Integration_Active_Conditional = new Wordproof_Integration_Active_Conditional(); // use class methods
Методы
- public __construct( Wordproof_Helper $wordproof )
- public is_met()
Код Wordproof_Integration_Active_Conditional{} Wordproof Integration Active Conditional{} Yoast 20.3
class Wordproof_Integration_Active_Conditional implements Conditional { /** * The WordProof helper. * * @var Wordproof_Helper */ private $wordproof; /** * WordProof integration active constructor. * * @param Wordproof_Helper $wordproof The options helper. */ public function __construct( Wordproof_Helper $wordproof ) { $this->wordproof = $wordproof; } /** * Returns whether or not the WordProof Timestamp plugin is active. * * @return bool Whether or not the WordProof Timestamp plugin is active. */ public function is_met() { return $this->wordproof->integration_is_active(); } }