mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Enhance password reset logic and add Action Scheduler filter
Ensure proper handling of user data in password reset functions by adding checks and updating parameter handling. Introduce a new filter to extend site health information and include a setting for enabling email sending via Action Scheduler. Improve code clarity with updated comments and function annotations.
This commit is contained in:
@@ -1238,6 +1238,10 @@ class Site_Health {
|
||||
'label' => __( 'Remove Data on Uninstall?', 'ultimate-member' ),
|
||||
'value' => UM()->options()->get( 'uninstall_on_delete' ) ? $labels['yes'] : $labels['no'],
|
||||
),
|
||||
'enable_as_email_sending' => array(
|
||||
'label' => __( 'Email sending by Action Scheduler', 'ultimate-member' ),
|
||||
'value' => UM()->options()->get( 'enable_as_email_sending' ) ? $labels['yes'] : $labels['no'],
|
||||
),
|
||||
);
|
||||
|
||||
// Secure settings
|
||||
@@ -2549,6 +2553,14 @@ class Site_Health {
|
||||
}
|
||||
}
|
||||
|
||||
return $info;
|
||||
/**
|
||||
* Filters the site health information.
|
||||
* @hook um_site_health_extend
|
||||
* @since 2.10.3
|
||||
* @param {array} info - The site health info to be filtered.
|
||||
*
|
||||
* @return {array} The filtered site health info.
|
||||
*/
|
||||
return apply_filters( 'um_site_health_extend', $info );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user