filtrod 2.9.0
load_image_to_edit
Opis — z kodu źródłowego
Filters the current image being loaded for editing.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$image | resource | \GdImage | Current image. |
$attachment_id | int | Attachment ID. |
$size | string | int[] | Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_image_to_edit', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'load_image_to_edit', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii