filtrod 3.7.0
audio_submitbox_misc_sections
Opis — z kodu źródłowego
Filters the audio attachment metadata fields to be shown in the publish meta box.
The key for each item in the array should correspond to an attachment metadata key, and the value should be the desired label.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$fields | array | An array of the attachment metadata keys and labels. |
$post | \WP_Post | WP_Post object for the current attachment. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'audio_submitbox_misc_sections', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'audio_submitbox_misc_sections', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii