ScreenOptions final class
Minn\Admin\ScreenOptions · public/minn/src/Minn/Admin/ScreenOptions.php · 27 lines
Which screen option a save keeps for itself, as set_screen_options tells them apart on the reference (probe admin-doubts): a core list's page size is saved as a number from 1 to 999 without asking any filter; any other option is the plugin's to accept through its filters.
Constants and properties
| private | CORE = array ( 0 => 'edit_per_page', 1 => 'users_per_page', 2 => 'edit_comments_per_page', 3 => 'upload_per_page', 4 => 'edit_tags_per_page', 5 => 'plugins_per_page', 6 => 'export_personal_data_requests_per_page', 7 => 'remove_personal_data_requests_per_page', 8 => 'sites_network_per_page', 9 => 'users_network_per_page', 10 => 'site_users_network_per_page', 11 => 'plugins_network_per_page', 12 => 'themes_network_per_page', 13 => 'site_themes_network_per_page', ) | The core lists' page sizes that are not named after a post type or taxonomy. |
Public
| static | isCore(string $option, Closure $registered): bool# | Whether an option is a core list's page size: one of those above, or a name that is a post type or taxonomy once "edit_" and "_per_page" are taken out of it.
| |||
| static | pageSized(string $option): bool# | Whether a plugin's option is a page size or the column count, which the general set-screen-option filter is asked about first. |
Nothing matches.