Yoast\WP\SEO\Helpers
Product_Helper{} Yoast 1.0
A helper object for the Yoast products.
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Product_Helper = new Product_Helper(); // use class methods
Методы
Код Product_Helper{} Product Helper{} Yoast 15.6.2
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();
}
}