wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_pre_update_setting › WordPress Filter Hooks

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

Filters whether to preempt a setting value update via the REST API.

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 );