filtrod 2.5.0
file_is_displayable_image
Opis — z kodu źródłowego
Filters whether the current image is displayable in the browser.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$result | bool | Whether the image can be displayed. Default true. |
$path | string | Path 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
}
// 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