W3cubDocs

/WordPress

apply_filters( “views_{$this->screen->id}”, string[] $views )

Filters the list of available list table views.

Description

The dynamic portion of the hook name, $this->screen->id, refers to the ID of the current screen.

Parameters

$viewsstring[]
An array of available list table views.

Source

$views = apply_filters( "views_{$this->screen->id}", $views );

Changelog

Version Description
3.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/views_this-screen-id