um_user_ip

Hook type

Filter

Description

Change User IP

Parameters

$ip

(string) User IP

Usage

add_filter( 'um_user_ip', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_user_ip', 'my_user_ip', 10, 1 );
function my_user_ip( $ip ) {
    // your code here
return $ip;
}
?>

Change Log

Since: 2.0

Source

um_user_ip is located in includes/um-short-functions.php::line 279