Functions

Setup the avatar upload directory for a user.

xprofile_avatar_upload_dir(string $directory = 'avatars', integer $user_id = 0) : array
package BuddyPress Core
package BuddyPress Core
since 1.0.0

Parameters

$directory

string

The root directory name. Optional.

$user_id

integer

The user ID. Optional.

Returns

arrayArray containing the path, URL, and other helpful settings.