wordproof-integration-active-conditional.php
846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace Yoast\WP\SEO\Conditionals\Third_Party;
use Yoast\WP\SEO\Conditionals\Conditional;
use Yoast\WP\SEO\Helpers\Wordproof_Helper;
/**
* Conditional that is met when the WordProof integration is toggled on.
*/
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();
}
}