WP HOOKS
filtrod 3.0.0

comment_form_logged_in

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

Opis — z kodu źródłowego

Filters the 'logged in' message for the comment form for display.

Parametry

ParametrTypOpis
$args_logged_instringThe HTML for the 'logged in as [user]' message, the Edit profile link, and the Log out link.
$commenterarrayAn array containing the comment author's username, email, and URL.
$user_identitystringIf 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
}

Popularne w tej kategorii