uapte
This commit is contained in:
@@ -114,10 +114,10 @@ class OpalEstate_Agency {
|
||||
/**
|
||||
* Get url of user avatar by agency id
|
||||
*/
|
||||
public static function get_avatar_url( $userID ) {
|
||||
public static function get_avatar_url( $userID, $size='thumbnail' ) {
|
||||
|
||||
$id = get_post_meta( $userID, OPALESTATE_AGENCY_PREFIX . 'avatar_id', true );;
|
||||
$url = wp_get_attachment_image_url( $id, 'thumbnail' );
|
||||
$url = wp_get_attachment_image_url( $id, $size );
|
||||
|
||||
if( $url ) {
|
||||
return $url;
|
||||
|
||||
Reference in New Issue
Block a user