apply_filters( 'wp_script_attributes', array $attributes )

Filters attributes to be added to a script tag.

Parameters Parameters


(array) Key-value pairs representing <script> tag attributes. Only the attribute name is added to the <script> tag for entries with a boolean value, and that are true.

Top ↑

Source Source

File: wp-includes/script-loader.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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