WP HOOKS
filtrod 2.8.0

get_comment_link

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

Opis — z kodu źródłowego

Filters the returned single comment permalink.

Parametry

ParametrTypOpis
$comment_linkstringThe comment permalink with '#comment-$id' appended.
$comment\WP_CommentThe current comment object.
$argsarrayAn array of arguments to override the defaults.
$cpageintThe calculated 'cpage' value.

Wywołanie

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

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

Popularne w tej kategorii