WP HOOKS
filtrod 2.1.0

wp_mime_type_icon

Args 3Plik wp-includes/post.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the mime type icon.

Parametry

ParametrTypOpis
$iconstringPath to the mime type icon.
$mimestringMime type.
$post_idintAttachment ID. Will equal 0 if the function passed the mime type.

Wywołanie

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

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

Popularne w tej kategorii