WP HOOKS
filtrod 1.5.0

get_comment_author_url

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

Opis — z kodu źródłowego

Filters the comment author's URL.

Parametry

ParametrTypOpis
$comment_author_urlstringThe comment author's URL, or an empty string.
$comment_idstring | intThe comment ID as a numeric string, or 0 if not found.
$comment\WP_Comment | nullThe comment object, or null if not found.

Wywołanie

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

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

Popularne w tej kategorii