WP HOOKS
filtrod 2.7.0

post_comments_link

Args 2Plik wp-includes/comment-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the formatted post comments link HTML.

Parametry

ParametrTypOpis
$post_reply_linkstringThe HTML-formatted post comments link.
$postint | \WP_PostThe post ID or WP_Post object.

Wywołanie

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

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

Popularne w tej kategorii