bp_members_avatar_upload_dir( string $directory = 'avatars', int $user_id )
Setup the avatar upload directory for a user.
Description Description
Parameters Parameters
- $directory
-
(Optional) The root directory name. Optional.
Default value: 'avatars'
- $user_id
-
(Required) The user ID. Optional.
Return Return
(array) Array containing the path, URL, and other helpful settings.
Source Source
File: bp-members/bp-members-functions.php
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |