Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Get IP address that can pass current $user_ID?

@vegasparty607

Participant

ok, now in this code:

`function get_IP() {
if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else if(!empty($_SERVER)) {
$ip_address = $_SERVER;
} else {
$ip_address = ”;
}
if(strpos($ip_address, ‘,’) !== false) {
$ip_address = explode(‘,’, $ip_address);
$ip_address = $ip_address[0];
}
return esc_attr($ip_address);`

how do i edit it with:

`function my_member_list_id() {
global $members_template;
return $members_template->member->user_id;` so it will work like i want?

Skip to toolbar