AnsPress_Avatar::filepath()
Description #
Return avatar file path.
Source #
File: addons/free/avatar.php
public function filepath() { $upload_dir = wp_upload_dir(); $avatar_dir = $upload_dir['basedir'] . '/ap_avatars'; // Make dir if does not exists already. if ( ! file_exists( $avatar_dir ) ) { wp_mkdir_p( $avatar_dir ); } return $avatar_dir . '/' . $this->filename . '.jpg'; }
Expand full source code Collapse full source code View on GitHub: addons/free/avatar.php:312
Add your comment