akcjaod 2.5.0
manage_pages_custom_column
Opis — z kodu źródłowego
Fires in each custom column on the Posts list table.
This hook only fires if the current post type is hierarchical, such as pages.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$column_name | string | The name of the column to display. |
$post_id | int | The current post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'manage_pages_custom_column', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'manage_pages_custom_column', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii