/** * Get the raw base URL for root site upload location. * * @uses wp_upload_dir To get upload directory info. * * @return string Full URL to current upload location. */ function bp_core_avatar_url() { return apply_filters('bp_core_avatar_url', bp_core_get_upload_dir('url')); }
/** * Get the raw base URL for root site upload location. * * @uses bp_core_get_upload_dir() To get upload directory info. * * @return string Full URL to current upload location. */ function bp_core_avatar_url() { /** * Filters the raw base URL for root site upload location. * * @since 1.2.0 * * @param string $value Raw base URL for the root site upload location. */ return apply_filters('bp_core_avatar_url', bp_core_get_upload_dir('url')); }
public function bxcft_profile_upload_dir($user_id = 0) { if ($user_id == 0 && empty($this->user_id)) { $this->user_id = bp_displayed_user_id(); } $profile_subdir = '/profiles/' . $this->user_id; $upload_dir = array('path' => bp_core_get_upload_dir() . $profile_subdir, 'url' => bp_core_get_upload_dir('url') . $profile_subdir, 'subdir' => bp_core_get_upload_dir() . $profile_subdir, 'basedir' => bp_core_get_upload_dir() . $profile_subdir, 'baseurl' => bp_core_get_upload_dir('url') . $profile_subdir, 'error' => false); return $upload_dir; }