WP HOOKS
akcjaod 4.4.0

attachment_updated

Args 3Plik wp-includes/post.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires once an existing attachment has been updated.

Parametry

ParametrTypOpis
$post_idintPost ID.
$post_after\WP_PostPost object following the update.
$post_before\WP_PostPost object before the update.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'attachment_updated', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii