bbp_get_current_user_id()

Return ID of current user

Description

Return

(int) Current user id

Source

File: bp-forums/users/template.php

	function bbp_get_current_user_id() {
		return apply_filters( 'bbp_get_current_user_id', bbp_get_user_id( 0, false, true ) );
	}

Changelog

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