WP HOOKS
filtrdynamicznyod 3.1.0

manage_{$this->screen->id}_sortable_columns

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

Opis — z kodu źródłowego

Filters the list table sortable columns for a specific screen.

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

Parametry

ParametrTypOpis
$sortable_columnsarrayAn array of sortable columns.

Wywołanie

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

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

Popularne w tej kategorii