| 1 |
<?php |
| 2 |
|
| 3 |
namespace SureCart\Integrations\Yoast; |
| 4 |
|
| 5 |
use SureCart\Integrations\Abstracts\NoIndexService; |
| 6 |
|
| 7 |
/** |
| 8 |
* Controls the Yoast SEO integration. |
| 9 |
*/ |
| 10 |
class YoastService extends NoIndexService { |
| 11 |
/** |
| 12 |
* The filter hook name for the robots meta. |
| 13 |
* |
| 14 |
* @var string |
| 15 |
*/ |
| 16 |
protected $hook_name = 'wpseo_robots_array'; |
| 17 |
|
| 18 |
/** |
| 19 |
* The noindex robots. |
| 20 |
* Yoast uses boolean values instead of strings. |
| 21 |
* |
| 22 |
* @var array |
| 23 |
*/ |
| 24 |
protected $noindex_robots = [ |
| 25 |
'noindex' => true, |
| 26 |
'nofollow' => true, |
| 27 |
]; |
| 28 |
} |
| 29 |
|