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.


Top ↑

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


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 This function has been deprecated.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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