mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- setting label changed;
- added filter hook 'um_change_usermeta_for_update' for extending $to_update usermeta array after all profile fields validations;
This commit is contained in:
@@ -652,7 +652,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
|
|||||||
'id' => 'activation_link_expiry_time',
|
'id' => 'activation_link_expiry_time',
|
||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'label' => __( 'Activation link lifetime', 'ultimate-member' ),
|
'label' => __( 'Activation link lifetime', 'ultimate-member' ),
|
||||||
'tooltip' => __( 'How long does an activation link live? Leave empty for endless links.', 'ultimate-member' ),
|
'tooltip' => __( 'How long does an activation link live in seconds? Leave empty for endless links.', 'ultimate-member' ),
|
||||||
'size' => 'small',
|
'size' => 'small',
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -363,6 +363,9 @@ function um_user_edit_profile( $args ) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// use this filter after all validations has been completed and we can extends data based on key
|
||||||
|
$to_update = apply_filters( 'um_change_usermeta_for_update', $to_update, $args, $fields, $key );
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user