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
| Parametr | Typ | Opis |
|---|---|---|
$sortable_columns | array | An 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
}
// 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