From 024cfcc4d45c1c4ed93b4b0d06cc3b202bf6884c Mon Sep 17 00:00:00 2001 From: Yurii Nalivaiko Date: Tue, 3 Sep 2024 12:42:12 +0200 Subject: [PATCH] Added Action Scheduler Option --- includes/admin/core/class-admin-settings.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php index 2e363783..fd256b9c 100644 --- a/includes/admin/core/class-admin-settings.php +++ b/includes/admin/core/class-admin-settings.php @@ -1005,6 +1005,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { 'enable_blocks' => array( 'sanitize' => 'bool', ), + 'enable_action_scheduler' => array( + 'sanitize' => 'bool', + ), 'rest_api_version' => array( 'sanitize' => 'text', ), @@ -2112,6 +2115,13 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { 'checkbox_label' => __( 'Enable Gutenberg Blocks', 'ultimate-member' ), 'description' => __( 'Check this box if you would like to use Ultimate Member blocks in Gutenberg editor. Important some themes have the conflicts with Gutenberg editor.', 'ultimate-member' ), ), + array( + 'id' => 'enable_action_scheduler', + 'type' => 'checkbox', + 'label' => __( 'Action Scheduler', 'ultimate-member' ), + 'checkbox_label' => __( 'Enable Action Scheduler', 'ultimate-member' ), + 'description' => __( 'Check this box if you want to use the Ultimate Member action scheduler. By enabling it, certain tasks like sending system emails will be scheduled to run at optimal times, which can help reduce the load on your server', 'ultimate-member' ), + ), $same_page_update, ), ),