[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/includes/users/ -> options.php (summary)

bbPress User Options

File Size: 355 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 16 functions

  bbp_get_default_user_options()
  bbp_add_user_options()
  bbp_delete_user_options()
  bbp_setup_user_option_filters()
  bbp_filter_get_user_option()
  bbp_update_user_topic_count()
  bbp_update_user_reply_count()
  bbp_user_topic_count()
  bbp_get_user_topic_count()
  bbp_user_reply_count()
  bbp_get_user_reply_count()
  bbp_user_post_count()
  bbp_get_user_post_count()
  bbp_update_user_last_posted()
  bbp_user_last_posted()
  bbp_get_user_last_posted()

Functions
Functions that are not part of a class:

bbp_get_default_user_options()   X-Ref
Get the default user options and their values

since: 2.1.0 bbPress (r3910)
return: array Filtered user option names and values

bbp_add_user_options( $user_id = 0 )   X-Ref
Add default user options

This is destructive, so existing bbPress user options will be overridden.

since: 2.1.0 bbPress (r3910)

bbp_delete_user_options( $user_id = 0 )   X-Ref
Delete default user options

Hooked to bbp_uninstall, it is only called once when bbPress is uninstalled.
This is destructive, so existing bbPress user options will be destroyed.

since: 2.1.0 bbPress (r3910)

bbp_setup_user_option_filters()   X-Ref
Add filters to each bbPress option and allow them to be overloaded from
inside the $bbp->options array.

since: 2.1.0 bbPress (r3910)

bbp_filter_get_user_option( $value = false, $option = '', $user = 0 )   X-Ref
Filter default options and allow them to be overloaded from inside the
$bbp->user_options array.

since: 2.1.0 bbPress (r3910)
return: mixed false if not overloaded, mixed if set
param: bool $value Optional. Default value false

bbp_update_user_topic_count( $user_id = 0, $count = false )   X-Ref
Update the topic count for a user

since: 2.6.0 bbPress (r5309)
return: boolean
param: int $user_id
param: mixed $count

bbp_update_user_reply_count( $user_id = 0, $count = false )   X-Ref
Update the reply count for a user

since: 2.6.0 bbPress (r5309)
return: boolean
param: int $user_id
param: mixed $count

bbp_user_topic_count( $user_id = 0, $integer = false )   X-Ref
Output a users topic count

since: 2.1.0 bbPress (r3632)
return: string
param: int $user_id
param: boolean $integer Optional. Whether or not to format the result

bbp_get_user_topic_count( $user_id = 0, $integer = false )   X-Ref
Return a users reply count

since: 2.1.0 bbPress (r3632)
return: string
param: int $user_id
param: boolean $integer Optional. Whether or not to format the result

bbp_user_reply_count( $user_id = 0, $integer = false )   X-Ref
Output a users reply count

since: 2.1.0 bbPress (r3632)
return: string
param: int $user_id
param: boolean $integer Optional. Whether or not to format the result

bbp_get_user_reply_count( $user_id = 0, $integer = false )   X-Ref
Return a users reply count

since: 2.1.0 bbPress (r3632)
return: string
param: int $user_id
param: boolean $integer Optional. Whether or not to format the result

bbp_user_post_count( $user_id = 0, $integer = false )   X-Ref
Output a users total post count

since: 2.1.0 bbPress (r3632)
return: string
param: int $user_id
param: boolean $integer Optional. Whether or not to format the result

bbp_get_user_post_count( $user_id = 0, $integer = false )   X-Ref
Return a users total post count

since: 2.1.0 bbPress (r3632)
return: string
param: int $user_id
param: boolean $integer Optional. Whether or not to format the result

bbp_update_user_last_posted( $user_id = 0, $time = 0 )   X-Ref
Update a users last posted time, for use with post throttling

since: 2.1.0 bbPress (r3910)
return: bool False if no user or failure, true if successful
param: int $user_id User ID to update
param: int $time Time in time() format

bbp_user_last_posted( $user_id = 0 )   X-Ref
Output the raw value of the last posted time.

since: 2.1.0 bbPress (r3910)
param: int $user_id User ID to retrieve value for

bbp_get_user_last_posted( $user_id = 0 )   X-Ref
Return the raw value of the last posted time.

since: 2.1.0 bbPress (r3910)
return: mixed False if no user, time() format if exists
param: int $user_id User ID to retrieve value for



Generated: Sat Dec 21 01:00:52 2024 Cross-referenced by PHPXref 0.7.1