Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_get_script_polyfill()

3 tags 1 category

wp_get_script_polyfill() — Returns contents of an inline script used in appending polyfill scripts for browsers which fail the provided tests. The provided array is a mapping from a condition to verify feature support to its polyfill script handle.

Inputs: $scripts (WP_Scripts): WP_Scripts object. $tests (string[]): Features to detect.

Returns string: Conditional polyfill inline script.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…