BP_Attachment_Avatar::get_avatar_types( array $allowed_types = array() )
Gets the available avatar types.
Description Description
Parameters Parameters
- $allowed_types
-
(Optional) Array of allowed avatar types.
Default value: array()
Return Return
(string) comma separated list of allowed avatar types.
Source 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', 'buddypress' ); return join( $comma . ' ', $types ); }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |