wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_print_script_tag › WordPress Function

Depuis5.7.0
Dépréciéen/a
wp_print_script_tag ( $attributes )
Paramètres:
  • (array) $attributes Key-value pairs representing `<script>` tag attributes.
    Requis: Oui
Défini(e) dans:
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.


Source

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