diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 2c481c8b4..dac3712c3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -17,6 +17,7 @@ * Dev - Compatibility for form fields integration on woo commerce product page. * Tweak - Save the user IP on the user meta. * Tweak - Onboarding last page design changes. +* Tweak - Add filter to change profile picture upload directory. * Fix - Admin email not being delivered. * Fix - Wrong escaping done in redirect_url parameter. * Fix - Grammatical typo for unique validation message. diff --git a/includes/functions-ur-core.php b/includes/functions-ur-core.php index 0e7cda8a6..07984cc21 100644 --- a/includes/functions-ur-core.php +++ b/includes/functions-ur-core.php @@ -3105,7 +3105,7 @@ function ur_get_user_roles( $user_id ) { */ function ur_upload_profile_pic( $valid_form_data, $user_id ) { $attachment_id = array(); - $upload_path = UR_UPLOAD_PATH . 'profile-pictures'; /*Get path of upload dir of User Registration for profile pictures*/ + $upload_path = apply_filters( 'user_registration_profile_pic_upload_url', UR_UPLOAD_PATH . 'profile-pictures' ); /*Get path of upload dir of WordPress*/ // Checks if the upload directory exists and create one if not. if ( ! file_exists( $upload_path ) ) { diff --git a/readme.txt b/readme.txt index d8a41f275..2786629cb 100644 --- a/readme.txt +++ b/readme.txt @@ -377,6 +377,7 @@ We are ready to assist you! You can contact us through the WordPress.org help fo * Dev - Compatibility for form fields integration on woo commerce product page. * Tweak - Save the user IP on the user meta. * Tweak - Onboarding last page design changes. +* Tweak - Add filter to change profile picture upload directory. * Fix - Admin email not being delivered. * Fix - Wrong escaping done in redirect_url parameter. * Fix - Grammatical typo for unique validation message.