BP_Attachment_Avatar::get_avatar_types( array $allowed_types = array() )
Gets the available avatar types.
Description
Parameters
- $allowed_types
-
(array) (Optional) Array of allowed avatar types.
Default value: array()
Return
(string) comma separated list of allowed avatar types.
Source
File: bp-core/classes/class-bp-attachment-avatar.php
public static function get_avatar_types( $allowed_types = array() ) { $types = array_map( 'strtoupper', $allowed_types ); $comma = _x( ',', 'avatar types separator', 'buddyboss' ); return join( $comma . ' ', $types ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.3.0 | 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.