WP HOOKS
filtrod 4.9.0

wp_read_video_metadata

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

Opis — z kodu źródłowego

Filters the array of metadata retrieved from a video.

In core, usually this selection is what is stored. More complete data can be parsed from the $data parameter.

Parametry

ParametrTypOpis
$metadataarrayFiltered video metadata.
$filestringPath to video file.
$file_formatstring | nullFile format of video, as analyzed by getID3. Null if unknown.
$dataarrayRaw metadata from getID3.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_read_video_metadata', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii