Yoast\WP\SEO\AI_Generator\User_Interface

Ai_Generator_Integration::get_product_subscriptions │ public │ Yoast 1.0

Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Gets the subscription status for Yoast SEO Premium and Yoast WooCommerce SEO.

Метод класса: Ai_Generator_Integration{}

Хуков нет.

Возвращает

array<string, bool>.

Использование

$Ai_Generator_Integration = new Ai_Generator_Integration();
$Ai_Generator_Integration->get_product_subscriptions();

Список изменений

Устарела с 28.4

Код Ai_Generator_Integration::get_product_subscriptions() Yoast 28.9

public function get_product_subscriptions() {
	\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
	return [
		'premiumSubscription'     => $this->addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG ),
		'wooCommerceSubscription' => $this->addon_manager->has_valid_subscription( WPSEO_Addon_Manager::WOOCOMMERCE_SLUG ),
	];
}