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
38
39
40
|
<?php
namespace Yoast\WP\SEO\Helpers;
/** * A helper object for the Yoast products. */ class Product_Helper {
/** * Gets the product name. * * @return string */ public function get_product_name() { if ( $this->is_premium() ) { return 'Yoast SEO Premium'; }
return 'Yoast SEO'; }
/** * Gets the product name in the head section. * * @return string */ public function get_name() { return $this->get_product_name() . ' plugin'; }
/** * Checks if the installed version is Yoast SEO Premium. * * @return bool True when is premium. */ public function is_premium() { return \defined( 'WPSEO_PREMIUM_PLUGIN_FILE' ); } }
|