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.


Top ↑

Parameters

$views

(string[])An array of available list table views.


Top ↑

Source

File: wp-admin/includes/class-wp-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.