wp_get_script_polyfill


wp_get_script_polyfill ( $scripts, $tests )

Parameters:
  • (WP_Scripts) scripts WP_Scripts object.
  • (string[]) tests Features to detect.
Returns:
  • (string) Conditional polyfill inline script.
Defined at:

Description

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.

Related Functions

wp_get_script_tag, wp_widget_description, wp_script_is, wp_register_script_module, wp_set_script_translations

Top Google Results

User discussions

wpseek mobile