akcjaod 2.5.0
manage_media_custom_column
Opis — z kodu źródłowego
Fires for each custom column in the Media list table.
Custom columns are registered using the {@see 'manage_media_columns'} filter.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$column_name | string | Name of the custom column. |
$post_id | int | Attachment ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'manage_media_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_media_custom_column', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii