akcjaod 1.5.0
manage_posts_custom_column
Opis — z kodu źródłowego
Fires in each custom column in the Posts list table.
This hook only fires if the current post type is non-hierarchical, such as posts.
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_posts_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_posts_custom_column', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii