Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_pre_update_setting ›

Da4.7.0
Deprecaton/a
apply_filters( 'rest_pre_update_setting', false, $name, $request[ $name ], $args )
Parametri: (4)
  • (bool) $result Whether to override the default behavior for updating the value of a setting.
    Richiesto:
  • (string) $name Setting name (as shown in REST API responses).
    Richiesto:
  • (mixed) $value Updated setting value.
    Richiesto:
  • (array) $args Arguments passed to register_setting() for this setting.
    Richiesto:
Definito a:
Codex:

Filters whether to preempt a setting value update.

Allows hijacking the setting update logic and overriding the built-in behavior by returning true.





Sorgenti

$updated = apply_filters( 'rest_pre_update_setting', false, $name, $request[ $name ], $args );