WordPress at a glance
function is not described

wp_print_script_tag() WP 5.7.0

Prints formatted <script> loader tag.

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

No Hooks.

Return

null. Null. Nothing.

Usage

wp_print_script_tag( $attributes );
$attributes(array) (required)
Key-value pairs representing <script> tag attributes.

Changelog

Since 5.7.0 Introduced.

Code of wp_print_script_tag() WP 5.7.1

<?php
function wp_print_script_tag( $attributes ) {
	echo wp_get_script_tag( $attributes );
}