bbp_is_anonymous()

Is an anonymous topic/reply being made?

Description

Return

(bool) True if anonymous is allowed and user is not logged in, false if anonymous is not allowed or user is logged in

Source

File: bp-forums/users/functions.php

function bbp_is_anonymous() {
	if ( !is_user_logged_in() && bbp_allow_anonymous() )
		$is_anonymous = true;
	else
		$is_anonymous = false;

	return apply_filters( 'bbp_is_anonymous', $is_anonymous );
}

Changelog

Changelog
Version Description
bbPress (r2688) 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.