WP HOOKS
filtrod 3.7.0

audio_submitbox_misc_sections

Args 2Plik wp-admin/includes/media.phpDokumentacja WP ↗

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

ParametrTypOpis
$fieldsarrayAn array of the attachment metadata keys and labels.
$post\WP_PostWP_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
}

Popularne w tej kategorii