Summery Summery

Filters a screen option value before it is set.

Syntax Syntax

apply_filters( "set_screen_option_{$option}", mixed $screen_option, string $option, int $value )

Description Description

The dynamic portion of the hook, $option, refers to the option name.

Returning false from the filter will skip saving the current option.

Parameters Parameters


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


(string) The option name.


(int) The option value.

Source Source

File: wp-admin/includes/misc.php


Changelog Changelog

Version Description
5.4.2 Introduced.

See also See also


Leave a Reply

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