wc_get_customer_avatar_url()WC 2.6.0

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

Return customer avatar URL.

No Hooks.


String. the URL to the customer's avatar.


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


Since 2.6.0 Introduced.
Deprecated since 3.1.0

wc_get_customer_avatar_url() code WC 7.5.1

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