Warning: This function has been deprecated.
xprofile_avatar_upload_dir( string $directory = 'avatars', int $user_id )
Setup the avatar upload directory for a user.
Parameters Parameters
- $directory
-
(string) (Optional) The root directory name. Optional.
Default value: 'avatars'
- $user_id
-
(int) (Required) The user ID. Optional.
Return Return
(array) Array containing the path, URL, and other helpful settings.
Source Source
File: bp-core/deprecated/6.0.php
function xprofile_avatar_upload_dir( $directory = 'avatars', $user_id = 0 ) { _deprecated_function( __FUNCTION__, '6.0.0', 'bp_members_avatar_upload_dir()' ); $avatar_dir = bp_members_avatar_upload_dir( $directory, $user_id ); /** This filter is documented in wp-includes/deprecated.php */ return apply_filters_deprecated( 'xprofile_avatar_upload_dir', array( $avatar_dir ), '6.0.0', 'bp_members_avatar_upload_dir' ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
6.0.0 | This function has been deprecated. |
1.0.0 | Introduced. |