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