Yoast\WP\SEO\AI_Consent\User_Interface
Ai_Consent_Integration::enqueue_assets
Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Enqueues the required assets.
Метод класса: Ai_Consent_Integration{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Ai_Consent_Integration = new Ai_Consent_Integration(); $Ai_Consent_Integration->enqueue_assets();
Список изменений
| Устарела с | 28.4 |
Код Ai_Consent_Integration::enqueue_assets() Ai Consent Integration::enqueue assets Yoast 28.9
public function enqueue_assets() {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
$this->asset_manager->enqueue_style( 'ai-generator' );
$this->asset_manager->localize_script( 'ai-consent', 'wpseoAiConsent', $this->get_script_data() );
$this->asset_manager->enqueue_script( 'ai-consent' );
}