views_{$this->screen->id} WordPress Filter Hook
The views_{$this->screen->id} hook is used to fire a callback function when a certain number of views have been reached for a particular post or page. It can be used to trigger an action, such as sending an email notification or displaying a message to the user.
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
- $views
(string[])An array of available list table views.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |