WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WPSEO_Addon_Manager::expired_subscription_warning() public Yoast 1.0

If the plugin is lacking an active subscription, throw a warning.

{} Это метод класса: WPSEO_Addon_Manager{}

Хуков нет.


null. Ничего.


$WPSEO_Addon_Manager = new WPSEO_Addon_Manager();
$WPSEO_Addon_Manager->expired_subscription_warning( $plugin_data );
$plugin_data(массив) (обязательный)
The data for the plugin in this row.

Код WPSEO_Addon_Manager::expired_subscription_warning() Yoast 17.2

public function expired_subscription_warning( $plugin_data ) {
	$subscription = $this->get_subscription( $plugin_data['slug'] );
	if ( $subscription && $this->has_subscription_expired( $subscription ) ) {
		echo '<br><br>';
		// translators: %1$s is the plugin name, %2$s and %3$s are a link.
		echo '<strong><span class="wp-ui-text-notification alert dashicons dashicons-warning"></span> ' . sprintf( esc_html__( 'A new version of %1$s is available. %2$sRenew your subscription%3$s if you want to update to the latest version.', 'wordpress-seo' ), esc_html( $plugin_data['name'] ), '<a href="' . esc_attr( WPSEO_Shortlinker::get( 'https://yoa.st/4ey' ) ) . '">', '</a>' ) . '</strong>';