Yoast\WP\SEO\AI_Consent\User_Interface

Ai_Consent_Integration::render_user_profile │ public │ Yoast 1.0

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

Renders the AI consent button for the user profile.

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

Хуков нет.

Возвращает

void. Ничего (null).

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

$Ai_Consent_Integration = new Ai_Consent_Integration();
$Ai_Consent_Integration->render_user_profile();

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

Устарела с 28.4

Код Ai_Consent_Integration::render_user_profile() Yoast 28.9

public function render_user_profile() {
	\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
	echo '<label for="ai-generator-consent-button">',
	\esc_html__( 'AI features', 'wordpress-seo' ),
	'</label>',
	'<div id="ai-generator-consent" style="display:inline-block; margin-top: 28px; padding-left:5px;"></div>';
}