wc_get_customer_avatar_url()WC 2.6.0

Deprecated since 3.1.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Return customer avatar URL.

No Hooks.

Returns

String. the URL to the customer's avatar.

Usage

wc_get_customer_avatar_url( $email );
$email(string) (required)
the customer's email.

Changelog

Since 2.6.0 Introduced.
Deprecated since 3.1.0

wc_get_customer_avatar_url() code WC 10.5.0

function wc_get_customer_avatar_url( $email ) {
	// Deprecated in favor of WordPress get_avatar_url() function.
	wc_deprecated_function( 'wc_get_customer_avatar_url()', '3.1', 'get_avatar_url()' );

	return get_avatar_url( $email );
}