WP HOOKS
akcjaod 2.5.0

pre_post_update

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

Opis — z kodu źródłowego

Fires immediately before an existing post is updated in the database.

Parametry

ParametrTypOpis
$post_idintPost ID.
$dataarrayArray of unslashed post data.

Wywołanie

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

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

Popularne w tej kategorii