filtrod 2.9.0
load_image_to_edit_path
Opis — z kodu źródłowego
Filters the returned path or URL of the current image.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$filepath | string | false | File path or URL to current image, or false. |
$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_path', '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_path', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii