bbp_current_author_ip

Get the poster IP address.

Description

(string) bbp_current_author_ip(); 

Returns (string)


Usage

  1. if ( !function_exists( 'bbp_current_author_ip' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_current_author_ip(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/users/functions.php  
  1. function bbp_current_author_ip() { 
  2. $retval = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] ); 
  3.  
  4. return apply_filters( 'bbp_current_author_ip', $retval );