wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_pre_update_setting › WordPress Filter Hooks

Seit4.7.0
Veraltetn/v
apply_filters( 'rest_pre_update_setting', false, $name, $request[ $name ], $args )
Parameter: (4)
  • (bool) $result Whether to override the default behavior for updating the value of a setting.
    Erforderlich: Ja
  • (string) $name Setting name (as shown in REST API responses).
    Erforderlich: Ja
  • (mixed) $value Updated setting value.
    Erforderlich: Ja
  • (array) $args Arguments passed to register_setting() for this setting.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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