wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_update_option_{$option} › Les Filtres WordPress

Depuis4.4.0
Dépréciéen/a
apply_filters( "pre_update_option_{$option}", $value, $old_value, $option )
Paramètres: (3)
  • (mixed) $value The new, unserialized option value.
    Requis: Oui
  • (mixed) $old_value The old option value.
    Requis: Oui
  • (string) $option Option name.
    Requis: Oui
Défini(e) dans:
Codex:

Filters a specific option before its value is (maybe) serialized and updated.

The dynamic portion of the hook name, $option, refers to the option name.





Source

$value = apply_filters( "pre_update_option_{$option}", $value, $old_value, $option );