filtrod 3.1.0
load_image_to_edit_filesystempath
Opis — z kodu źródłowego
Filters the path to an attachment's file when editing the image.
The filter is evaluated for all image sizes except 'full'.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$path | string | Path to the 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_filesystempath', '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_filesystempath', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii