| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/INFRABIKEDE/wp-content/plugins/wordpress-seo/src/helpers/ |
Upload File : |
<?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_FILE' );
}
/**
* Gets the Premium version if defined, returns null otherwise.
*
* @return string|null The Premium version or null when premium version is not defined.
*/
public function get_premium_version() {
if ( \defined( 'WPSEO_PREMIUM_VERSION' ) ) {
return \WPSEO_PREMIUM_VERSION;
}
return null;
}
/**
* Gets the version.
*
* @return string The version.
*/
public function get_version() {
return \WPSEO_VERSION;
}
}