C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\wordpress-seo\src\helpers\product-helper.php


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
<?php

namespace Yoast\WP\SEO\Helpers;

use 
WPSEO_Utils;

/**
 * A helper object for the Yoast products.
 */
class Product_Helper {

    
/**
     * Get the product name in the head section.
     *
     * @return string
     */
    
public function get_name() {
        if ( 
$this->is_premium() ) {
            return 
'Yoast SEO Premium plugin';
        }

        return 
'Yoast SEO plugin';
    }

    
/**
     * Checks if the installed version is Yoast SEO Premium.
     *
     * @codeCoverageIgnore It just wraps a static method.
     *
     * @return bool True when is premium.
     */
    
public function is_premium() {
        return 
WPSEO_Utils::is_yoast_seo_premium();
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586