WP HOOKS
akcjaod 2.3.0

wp_update_comment_count

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

Opis — z kodu źródłowego

Fires immediately after a post's comment count is updated in the database.

Parametry

ParametrTypOpis
$post_idintPost ID.
$newintThe new comment count.
$oldintThe old comment count.

Wywołanie

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

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

Popularne w tej kategorii