WP HOOKS
filtrod 2.7.0

comment_reply_link

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

Opis — z kodu źródłowego

Filters the comment reply link.

Parametry

ParametrTypOpis
$comment_reply_linkstringThe HTML markup for the comment reply link.
$argsarrayAn array of arguments overriding the defaults.
$comment\WP_CommentThe object of the comment being replied.
$post\WP_PostThe WP_Post object.

Wywołanie

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

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

Popularne w tej kategorii