bbp_is_anonymous()

Is an anonymous topic/reply being made?


Description Description


Return Return

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


Top ↑

Source Source

File: includes/users/functions.php

function bbp_is_anonymous() {
	$is_anonymous = ( ! is_user_logged_in() && bbp_allow_anonymous() );

	// Filter & return
	return (bool) apply_filters( 'bbp_is_anonymous', $is_anonymous );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.