set-screen-option

Advertisement

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

$keep

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

$option

(string) The option name.

$value

(int) The number of rows to use.

Source Source

File: wp-admin/includes/misc.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

See also See also

Advertisement

Leave a Reply

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