Added Action Scheduler Option

This commit is contained in:
Yurii Nalivaiko
2024-09-03 12:42:12 +02:00
parent 7e8714ae4c
commit 024cfcc4d4
@@ -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,
),
),