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



set_screen_option_{$option} › Filtr WordPress Hooks

Od5.4.2
Przestarzałyn/a
apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value )
Parametry: (3)
  • (mixed) $screen_option The value to save instead of the option value. Default false (to skip saving the current option).
    Wymagane: Tak
  • (string) $option The option name.
    Wymagane: Tak
  • (int) $value The option value.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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