wp_get_script_polyfill


wp_get_script_polyfill ( $scripts, $tests )

Parameters:
  • (WP_Scripts) $scripts WP_Scripts object.
  • (array) $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_script_is, wp_widget_description, wp_set_script_translations, get_edit_profile_url, wp_get_single_post

Top Google Results

User discussions

wpseek mobile