AnsPress_Avatar::avatar_exists()
Description #
Check if avatar for a user already exists.
Source #
File: addons/free/avatar.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/free/avatar.php:300
Add your comment