Refactor Action Scheduler for not only email handling.

Updated the Action Scheduler implementation to improve flexibility and clarity. Replaced the 'enable_action_scheduler' option with 'enable_as_email_sending' for better specificity. Introduced hook-based checks to selectively enable email scheduling, ensuring compatibility and optimized performance.
This commit is contained in:
Mykyta Synelnikov
2025-04-04 12:59:10 +03:00
parent cc074bee3d
commit 3858c6af83
4 changed files with 28 additions and 15 deletions
+1 -1
View File
@@ -1011,7 +1011,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'enable_blocks' => array(
'sanitize' => 'bool',
),
'enable_action_scheduler' => array(
'enable_as_email_sending' => array(
'sanitize' => 'bool',
),
'rest_api_version' => array(