filtrod 3.0.0
comment_form_logged_in
Opis — z kodu źródłowego
Filters the 'logged in' message for the comment form for display.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args_logged_in | string | The HTML for the 'logged in as [user]' message, the Edit profile link, and the Log out link. |
$commenter | array | An array containing the comment author's username, email, and URL. |
$user_identity | string | If the commenter is a registered user, the display name, blank otherwise. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_form_logged_in', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_form_logged_in', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii