Introducing script attributes related functions in WordPress 5.7
WordPress 5.7 adds a handful of new functions that enables passing attributes, such as async or nonce, to both regular and inline script tag attributes. This creates a path forward for enabling a Content-Security-Policy (or CSP) in Core, plugins, and themes. These new functions are: wp_get_script_tag() – Formats <script> loader tags and automatically injects a type attribute (if … Continue reading Introducing script attributes related functions in WordPress 5.7
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed