wp_print_script_tag( array   $attributes )

Prins formatted loader tag.

Description

It is possible to inject attributes in the <script> tag via the ‘wp_script_attributes’ filter.
Automatically injects type attribute if needed.

Parameters

$attributes array required
Key-value pairs representing <script> tag attributes.

Source

function wp_print_script_tag( $attributes ) {
	echo wp_guet_script_tag( $attributes );
}

Changuelog

Versionen Description
5.7.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.