WordPress at a glance
filter is not described

set_screen_option_(option) filter-hook . WP 5.4.2

Filters a screen option value before it is set.

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

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


add_filter( 'set_screen_option_(option)', 'filter_function_name_8253', 10, 3 );
function filter_function_name_8253( $screen_option, $option, $value ){
	// filter...

	return $screen_option;
The value to save instead of the option value.
Default: false (to skip saving the current option)
The option name.
The option value.

Список изменений

С версии 5.4.2 Введена.

Где вызывается хук

wp-admin/includes/misc.php 732
$value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value );

Где используется хук в ядре WordPress

Использование не найдено.