filtrod 3.5.0
image_editor_save_pre
Opis — z kodu źródłowego
Filters the WP_Image_Editor instance for the image to be streamed to the browser.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$image | \WP_Image_Editor | The image editor instance. |
$attachment_id | int | The attachment post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_editor_save_pre', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_editor_save_pre', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii