On this page
apply_filters( 'set-screen-option', mixed $screen_option, string $option, int $value )
Filters a screen option value before it is set.
Description
The filter can also be used to modify non-standard [items]_per_page settings. See the parent function for a full list of standard options.
Returning false from the filter will skip saving the current option.
See also
Parameters
$screen_optionmixed-
The value to save instead of the option value.
Default false (to skip saving the current option). $optionstring-
The option name.
$valueint-
The option value.
Source
File: wp-admin/includes/misc.php. View all references
$screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Related
Used By
| Used By | Description |
|---|---|
| set_screen_options() wp-admin/includes/misc.php | Saves option for number of rows when listing posts, pages, comments, etc. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/set-screen-option