// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated.
* Represents the values for a single Yoast Premium extension plugin.
* Holds the extension config.
* WPSEO_Extension constructor.
* @param array $config The config to use.
public function __construct( array $config ) {
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
* Returns the product title.
* @return string The set title.
public function get_title() {
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
return $this->config['title'];
* Returns the product title to display.
* @return string The title to display on the license page.
public function get_display_title() {
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
return empty( $this->config['display_title'] ) ? $this->config['title'] : $this->config['display_title'];
* Returns URL to the page where the product can be bought.
* @return string The buy url.
public function get_buy_url() {
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
return $this->config['buyUrl'];
* Returns URL to the page with more info.
* @return string The url to the info page.
public function get_info_url() {
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
return $this->config['infoUrl'];
* @return string The image.
public function get_image() {
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
return $this->config['image'];
* Returns the buy button value if set, otherwise fallback to the title.
* @return string The buy button.
public function get_buy_button() {
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
if ( isset( $this->config['buy_button'] ) ) {
return $this->config['buy_button'];
return $this->config['title'];
* @return array The array with benefits.
public function get_benefits() {
_deprecated_function( __METHOD__, 'WPSEO 15.4' );
return $this->config['benefits'];