ap_generate_avatar( integer|string $user_id )

Description #

Generate avatar.

Parameters #

  • $user_id
    integer | string (Required) User ID or name.

Source #

File: addons/free/avatar.php

function ap_generate_avatar( $user_id ) {
	$avatar = new AnsPress_Avatar( $user_id );
	$avatar->generate();

	return $avatar->fileurl();
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment