Summery Summery

Filters a screen option value before it is set.

Syntax Syntax

apply_filters( 'set-screen-option', bool $keep, string $option, int $value )

Description 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 to the filter will skip saving the current option.

Parameters Parameters


(bool) Whether to save or skip saving the screen option value. Default false.


(string) The option name.


(int) The number of rows to use.

Source Source

File: wp-admin/includes/misc.php


Changelog Changelog

Version Description
2.8.0 Introduced.

See also See also


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.