Yoast\WP\SEO\General\User_Interface

General_Page_Integration::enqueue_assets()publicYoast 1.0

Enqueues the assets.

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

Хуков нет.

Возвращает

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

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

$General_Page_Integration = new General_Page_Integration();
$General_Page_Integration->enqueue_assets();

Код General_Page_Integration::enqueue_assets() Yoast 24.4

public function enqueue_assets() {
	// Remove the emoji script as it is incompatible with both React and any contenteditable fields.
	\remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
	\wp_enqueue_media();
	$this->asset_manager->enqueue_script( 'general-page' );
	$this->asset_manager->enqueue_style( 'general-page' );
	if ( $this->promotion_manager->is( 'black-friday-2024-promotion' ) ) {
		$this->asset_manager->enqueue_style( 'black-friday-banner' );
	}
	$this->asset_manager->localize_script( 'general-page', 'wpseoScriptData', $this->get_script_data() );
}