WP HOOKS
filtrdynamicznyod 3.1.0

views_{$this->screen->id}

Args 1Plik wp-admin/includes/class-wp-list-table.php

Opis — z kodu źródłowego

Filters the list of available list table views.

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

Parametry

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

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'views_{$this->screen->id}', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii