bbp_current_author_ip()

Get the poster IP address

Description

Return

(string)

Source

File: bp-forums/users/functions.php

function bbp_current_author_ip() {
	$retval = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );

	return apply_filters( 'bbp_current_author_ip', $retval );
}

Changelog

Changelog
Version Description
bbPress (r3120) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.