Automattic\WooCommerce\Internal\Admin
WCAdminAssets::output_header_preload_tags
Output preload link tags for all enqueued stylesheets and scripts.
See: https://macarthur.me/posts/preloading-javascript-in-wordpress
Метод класса: WCAdminAssets{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->output_header_preload_tags();
Код WCAdminAssets::output_header_preload_tags() WCAdminAssets::output header preload tags WC 10.7.0
private function output_header_preload_tags() {
$wc_admin_scripts = array(
WC_ADMIN_APP,
'wc-components',
);
$wc_admin_styles = array(
WC_ADMIN_APP,
'wc-components',
'wc-material-icons',
);
// Preload styles.
$this->output_header_preload_tags_for_type( 'style', $wc_admin_styles );
// Preload scripts.
$this->output_header_preload_tags_for_type( 'script', $wc_admin_scripts );
}