ap_is_avatar_exists( integer $user_id )
Description #
Check if avatar exists already.
Parameters #
- $user_idinteger (Required) User ID or name.
Source #
File: addons/avatar/avatar.php
function ap_is_avatar_exists( $user_id ) { $filename = md5( $user_id ); $upload_dir = wp_upload_dir(); $avatar_dir = $upload_dir['basedir'] . '/ap_avatars'; return file_exists( $avatar_dir . $filename . '.jpg' ); }
Expand full source code Collapse full source code View on GitHub: addons/avatar/avatar.php:195
Add your comment