filtrod 6.2.0
comment_author_link_rel
Opis — z kodu źródłowego
Filters the rel attributes of the comment author's link.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$rel_parts | string[] | An array of strings representing the rel tags which will be joined into the anchor's rel attribute. |
$comment | \WP_Comment | The 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
}
// 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