set-screen-option

Advertisement

Summery Summery

Filters a screen option value before it is set.

Syntax Syntax

apply_filters( 'set-screen-option', mixed $screen_option, 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 from the filter will skip saving the current option.

Parameters Parameters

$screen_option

The value to save instead of the option value. Default false (to skip saving the current option).

$option

The option name.

$value

The option value.

Source Source

File: wp-admin/includes/misc.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.4.2 Only applied to options ending with '_page', or the 'layout_columns' option.
2.8.0 Introduced.

See also See also

Advertisement

Leave a Reply