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)
  • (array) $attributes Key-value pairs representing `<script>` tag attributes. Only the attribute name is added to the `<script>` tag for entries with a boolean value, and that are true.
    Requis: Oui
  • (string) $data Inline data.
    Requis: Oui
Défini(e) dans:
Codex:

Filters attributes to be added to a script tag.





Source

$attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $data );