filtrdynamicznyod 3.0.0
manage_{$screen->id}_columns
Args 1Plik wp-admin/includes/screen.php
Opis — z kodu źródłowego
Filters the column headers for a list table on a specific screen.
The dynamic portion of the hook name, $screen->id, refers to the ID of a specific screen. For example, the screen ID for the Posts list table is edit-post, so the filter for that screen would be manage_edit-post_columns.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$columns | string[] | The column header labels keyed by column ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'manage_{$screen->id}_columns', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'manage_{$screen->id}_columns', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii