bbp_displayed_user_field( string $field = '', string $filter = 'display' )
Output a sanitized user field value
Description
This function relies on the $filter parameter to decide how to sanitize the field value that it finds. Since it uses the WP_User object’s magic __get() method, it can also be used to get user_meta values.
Parameters
- $field
-
(Optional) Field to get
Default value: ''
- $filter
-
(Optional) How to filter the field value (null|raw|db|display|edit)
Default value: 'display'
Source
File: bp-forums/users/template.php
function bbp_displayed_user_field( $field = '', $filter = 'display' ) { echo bbp_get_displayed_user_field( $field, $filter ); }
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.