wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_pre_update_setting › Filtr WordPress Hooks

Od4.7.0
Przestarzałyn/a
apply_filters( 'rest_pre_update_setting', false, $name, $request[ $name ], $args )
Parametry: (4)
  • (bool) $result Whether to override the default behavior for updating the value of a setting.
    Wymagane: Tak
  • (string) $name Setting name (as shown in REST API responses).
    Wymagane: Tak
  • (mixed) $value Updated setting value.
    Wymagane: Tak
  • (array) $args Arguments passed to register_setting() for this setting.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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