wp_enqueue_scripts()WP 2.8.0

Wrapper for do_action( wp_enqueue_scripts

Allows plugins to queue scripts for the front end using wp_enqueue_script(). Runs first in wp_head() where all is_home(), is_page(), etc. functions are available.

Хуки из функции

Возвращает

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

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

wp_enqueue_scripts();

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

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

Код wp_enqueue_scripts() WP 6.5.2

function wp_enqueue_scripts() {
	/**
	 * Fires when scripts and styles are enqueued.
	 *
	 * @since 2.8.0
	 */
	do_action( 'wp_enqueue_scripts' );
}