WP HOOKS
filtrod 5.5.0

wp_edited_image_metadata

Args 3Plik wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the meta data for the new image created by editing an existing image.

Parametry

ParametrTypOpis
$new_image_metaarrayMeta data for the new image.
$new_attachment_idintAttachment post ID for the new image.
$attachment_idintAttachment 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
}

Popularne w tej kategorii