ap_generate_avatar( integer|string $user_id )

Description #

Generate avatar.

Parameters #

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

Source #

File: addons/avatar/avatar.php

function ap_generate_avatar( $user_id ) {
	$avatar = new Avatar\Generator( $user_id );
	$avatar->generate();

	return $avatar->fileurl();
}

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Add your comment