File Editor
Directories:
.. (Back)
open-graph
schema
twitter
Files:
aioseo-helper.php
asset-helper.php
attachment-cleanup-helper.php
author-archive-helper.php
blocks-helper.php
capability-helper.php
crawl-cleanup-helper.php
curl-helper.php
current-page-helper.php
date-helper.php
environment-helper.php
first-time-configuration-notice-helper.php
home-url-helper.php
image-helper.php
import-cursor-helper.php
import-helper.php
indexable-helper.php
indexable-to-postmeta-helper.php
indexing-helper.php
language-helper.php
meta-helper.php
notification-helper.php
options-helper.php
pagination-helper.php
permalink-helper.php
post-helper.php
post-type-helper.php
primary-term-helper.php
product-helper.php
redirect-helper.php
require-file-helper.php
robots-helper.php
robots-txt-helper.php
sanitization-helper.php
score-icon-helper.php
short-link-helper.php
site-helper.php
social-profiles-helper.php
string-helper.php
taxonomy-helper.php
url-helper.php
user-helper.php
wincher-helper.php
woocommerce-helper.php
wordpress-helper.php
wpdb-helper.php
Create New File
Create
Edit File: product-helper.php
<?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; } }
Save Changes
Rename File
Rename