Generator::filepath()
Description #
Return avatar file path.
Source #
File: addons/avatar/class-generator.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/avatar/class-generator.php:172
Add your comment