Generator::avatar_exists()

Description #

Check if avatar for a user already exists.

Source #

File: addons/avatar/class-generator.php

160
161
162
163
164
165
public function avatar_exists() {
    $upload_dir = wp_upload_dir();
    $avatar_dir = $upload_dir['basedir'] . '/ap_avatars';
 
    return file_exists( $avatar_dir . '/' . $this->filename . '.jpg' );
}

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