_wp_footer_scripts()WP 3.3.0

Private, for use in *_footer_scripts hooks

In classic themes, when block styles are loaded on demand via wp_load_classic_theme_block_styles_on_demand(), this function is replaced by a closure in wp_hoist_late_printed_styles() which will capture the printing of two sets of "late" styles to be hoisted to the HEAD by means of the template enhancement output buffer:

  1. Styles related to blocks are inserted right after the wp-block-library stylesheet.
  2. All other styles are appended to the end of the HEAD.

The closure calls print_footer_scripts() to print scripts in the footer as usual.

Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.

Хуков нет.

Возвращает

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

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

_wp_footer_scripts();

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

С версии 3.3.0 Введена.

Код _wp_footer_scripts() WP 6.9

function _wp_footer_scripts() {
	print_late_styles();
	print_footer_scripts();
}