wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_inline_script_attributes › Les Filtres WordPress
Depuis5.7.0
Dépréciéen/a
› apply_filters( 'wp_inline_script_attributes', $attributes, $data )
| Paramètres: (2) |
|
| Défini(e) dans: |
|
| Codex: |
Filters attributes to be added to a script tag.
Escaping and normalization can make the text a browser parses from the printed tag differ from `$data`. A callback that needs that text, such as one computing a CSP hash, can set `$data` as the modifiable text of a SCRIPT tag in a `WP_HTML_Tag_Processor` with the filtered attributes applied and then read {@see \WP_HTML_Tag_Processor::get_modifiable_text()}, at a late priority so that the attributes are final.Fonctions en relation: wp_sanitize_script_attributes, wp_get_inline_script_tag, wp_kses_uri_attributes, wp_add_inline_script, wp_print_inline_script_tag, wp_pre_kses_block_attributes