Updated condition

This commit is contained in:
Yurii Nalivaiko
2024-07-29 15:42:58 +02:00
parent f49fdecbb3
commit 798c82bed0
+1 -1
View File
@@ -144,7 +144,7 @@ add_filter( 'um_profile_field_filter_hook__vimeo_video', 'um_profile_field_filte
* @return string
*/
function um_profile_field_filter_hook__phone( $value, $data ) {
if ( ! trim( str_replace( '+', '', $value ) ) ) {
if ( empty( trim( str_replace( '+', '', $value ) ) ) ) {
return '';
}