WPSEO_Addon_Manager::expired_subscription_warning()
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() WPSEO Addon Manager::expired subscription warning Yoast 20.0
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_url( WPSEO_Shortlinker::get( 'https://yoa.st/4ey' ) ) . '">', '</a>' ) . '</strong>'; } }