WP HOOKS
akcjaod 2.1.0

commentrss2_item

Args 2Plik wp-includes/feed-rss2-comments.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires at the end of each RSS2 comment feed item.

Parametry

ParametrTypOpis
$comment_idintThe ID of the comment being displayed.
$comment_post_idintThe ID of the post the comment is connected to.

Wywołanie

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

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

Popularne w tej kategorii