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

Filters a screen option value before it is set.


Description

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

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

Top ↑

See also


Top ↑

Parameters

$screen_option mixed
The value to save instead of the option value.
Default false (to skip saving the current option).
$option string
The option name.
$value int
The option value.

Top ↑

Source

File: wp-admin/includes/misc.php. View all references

$value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value );


Top ↑

Changelog

Changelog
Version Description
5.4.2 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.