bbp_get_default_user_options()

Get the default user options and their values

Description

Return

(array) Filtered user option names and values

Source

File: bp-forums/users/options.php

function bbp_get_default_user_options() {

	// Default options
	return apply_filters( 'bbp_get_default_user_options', array(
		'_bbp_last_posted'   => '0', // For checking flooding
		'_bbp_topic_count'   => '0', // Total topics per site
		'_bbp_reply_count'   => '0', // Total replies per site
		'_bbp_favorites'     => '',  // Favorite topics per site
		'_bbp_subscriptions' => ''   // Subscribed topics per site
	) );
}

Changelog

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