bbp_get_fallback_display_name( int $object_id )
Get the default name that’s displayed when a user cannot be identified.
Description Description
This might happen if a user was deleted but their content was retained, or if something went wrong during saving anonymous user data to the database.
Parameters Parameters
- $object_id
-
(Required) For additional context only, usually a post ID
Return Return
(string)
Source Source
File: includes/users/template.php
function bbp_get_fallback_display_name( $object_id = 0 ) {
$name = esc_html__( 'Anonymous', 'bbpress' );
// Filter & return
return apply_filters( 'bbp_get_anonymous_name', $name, $object_id );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |