filtrod 5.5.0
wp_edited_image_metadata
Opis — z kodu źródłowego
Filters the meta data for the new image created by editing an existing image.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$new_image_meta | array | Meta data for the new image. |
$new_attachment_id | int | Attachment post ID for the new image. |
$attachment_id | int | Attachment post ID for the edited (parent) image. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_edited_image_metadata', '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( 'wp_edited_image_metadata', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii