WP HOOKS
filtrod 2.3.0

edit_comment_link

Args 3Plik wp-includes/link-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the comment edit link anchor tag.

Parametry

ParametrTypOpis
$linkstringAnchor tag for the edit link.
$comment_idstringComment ID as a numeric string.
$textstringAnchor text.

Wywołanie

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

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

Popularne w tej kategorii