WP HOOKS
filtrod 6.2.0

comment_author_link_rel

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

Opis — z kodu źródłowego

Filters the rel attributes of the comment author's link.

Parametry

ParametrTypOpis
$rel_partsstring[]An array of strings representing the rel tags which will be joined into the anchor's rel attribute.
$comment\WP_CommentThe comment object.

Wywołanie

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

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

Popularne w tej kategorii