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()


Top ↑

Return Return

(string) comma separated list of allowed avatar types.


Top ↑

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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.