| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Conditionals\Third_Party; |
| 4 |
|
| 5 |
use Yoast\WP\SEO\Conditionals\Conditional; |
| 6 |
|
| 7 |
/** |
| 8 |
* Conditional that is only met when Easy Digital Downloads is active. |
| 9 |
*/ |
| 10 |
class EDD_Conditional implements Conditional { |
| 11 |
|
| 12 |
/** |
| 13 |
* Returns `true` when the Easy Digital Downloads plugin is installed and activated. |
| 14 |
* |
| 15 |
* @return bool `true` when the Easy Digital Downloads plugin is installed and activated. |
| 16 |
*/ |
| 17 |
public function is_met() { |
| 18 |
return \class_exists( 'Easy_Digital_Downloads' ); |
| 19 |
} |
| 20 |
} |
| 21 |
|