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.
$screen_optionmixed
$optionstring
$valueint
$value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value );
| Version | Description |
|---|---|
| 5.4.2 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/set_screen_option_option