wpseek.com
A WordPress-centric search engine for devs and theme authors



set_screen_option_{$option} › WordPress Filter Hooks

Since5.4.2
Deprecatedn/a
apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value )
Parameters: (3)
  • () screen_option The value to save instead of the option value. Default false (to skip saving the current option).
    Required: Yes
  • () option The option name.
    Required: Yes
  • () value The option value.
    Required: Yes
See:
  • set_screen_options()
Defined at:
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.




Source

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