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



set_screen_option_{$option} › WordPress Filter Hooks

Seit5.4.2
Veraltetn/v
apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value )
Parameter: (3)
  • (mixed) $screen_option The value to save instead of the option value. Default false (to skip saving the current option).
    Erforderlich: Ja
  • (string) $option The option name.
    Erforderlich: Ja
  • (int) $value The option value.
    Erforderlich: Ja
Definiert in:
Codex:

Filters a screen option value before it is set.

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

Returning false from the filter will skip saving the current option.





Quellcode

$value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value );