mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 15:13:55 +09:00
Updated condition
This commit is contained in:
@@ -144,10 +144,7 @@ add_filter( 'um_profile_field_filter_hook__vimeo_video', 'um_profile_field_filte
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function um_profile_field_filter_hook__phone( $value, $data ) {
|
function um_profile_field_filter_hook__phone( $value, $data ) {
|
||||||
$test_value = str_replace( '+', '', $value );
|
if ( ! trim( str_replace( '+', '', $value ) ) ) {
|
||||||
$test_value = trim( $test_value );
|
|
||||||
|
|
||||||
if ( ! $test_value ) {
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user