filtrod 6.5.0
image_save_progressive
Opis — z kodu źródłowego
Filters whether to output progressive images (if available).
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$interlace | bool | Whether to use progressive images for output if available. Default false. |
$mime_type | string | The mime type being saved. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_save_progressive', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_save_progressive', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii