filtrod 1.5.0
get_comment_author_IP
Opis — z kodu źródłowego
Filters the comment author's returned IP address.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_author_ip | string | The comment author's IP address, or an empty string if it's not available. |
$comment_id | string | The comment ID as a numeric string. |
$comment | \WP_Comment | The comment object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comment_author_IP', '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( 'get_comment_author_IP', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii