WP HOOKS
filtrod 3.1.0

wp_get_current_commenter

Args 1Plik wp-includes/comment.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the current commenter's name, email, and URL.

Parametry

ParametrTypOpis
$comment_author_dataarray{ An array of current commenter variables. @type string $comment_author The name of the current commenter, or an empty string. @type string $comment_author_email The email address of the current commenter, or an empty string. @type string $comment_author_url The URL address of the current commenter, or an empty string. }

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_get_current_commenter', 'twoja_funkcja' );

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

Popularne w tej kategorii