WP HOOKS
akcjaod 3.0.0

post_updated

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

Opis — z kodu źródłowego

Fires once an existing post 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( 'post_updated', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii