wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_print_script_tag › WordPress Function

Da5.7.0
Deprecaton/a
wp_print_script_tag ( $attributes )
Parametri:
  • (array) $attributes Key-value pairs representing `<script>` tag attributes.
    Richiesto:
Definito a:
Codex:

Prints formatted `<script>` loader tag.

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


Sorgenti

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