Generator::avatar_exists()
Description #
Check if avatar for a user already exists.
Source #
File: addons/avatar/class-generator.php
public function avatar_exists() { $upload_dir = wp_upload_dir(); $avatar_dir = $upload_dir['basedir'] . '/ap_avatars'; return file_exists( $avatar_dir . '/' . $this->filename . '.jpg' ); }
Expand full source code Collapse full source code View on GitHub: addons/avatar/class-generator.php:160
Add your comment