WP HOOKS
filtrod 2.5.0

file_is_displayable_image

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

Opis — z kodu źródłowego

Filters whether the current image is displayable in the browser.

Parametry

ParametrTypOpis
$resultboolWhether the image can be displayed. Default true.
$pathstringPath to the image.

Wywołanie

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

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

Popularne w tej kategorii