Screen_Options::filter_set_screen_options( bool $status, string $option, mixed $value )

Filters the save operations of screen options to save the ones the class manages.


Parameters

$status

(bool) (Required) Whether the option should be saved or not.

$option

(string) (Required) The user option slug.

$value

(mixed) (Required) The user option value.


Top ↑

Return

(bool|mixed) Either false if the user option is not one managed by the class or the user option value to save.


Top ↑

Source

File: src/Tickets/Admin/Tickets/Screen_Options.php

	public function filter_set_screen_options( $status, $option, $value ) {
		if ( $option === self::$per_page_user_option ) {
			return $value;
		}

		return $status;
	}

Top ↑

Changelog

Changelog
Version Description
5.14.0 Introduced.