| @@ -1,193 +1,191 @@ | ||
| 1 | -<?php | |
| 2 | -return apply_filters( | |
| 3 | - 'lp/settings/open-ai', | |
| 4 | - array_merge( | |
| 5 | - apply_filters( | |
| 6 | - 'learn-press/course-settings-fields/single', | |
| 7 | - [ | |
| 8 | - [ | |
| 9 | - 'title' => esc_html__( 'OpenAI', 'learnpress' ), | |
| 10 | - 'type' => 'title', | |
| 11 | - ], | |
| 12 | - [ | |
| 13 | - 'title' => esc_html__( 'Enable OpenAI', 'learnpress' ), | |
| 14 | - 'id' => 'enable_open_ai', | |
| 15 | - 'default' => 'no', | |
| 16 | - 'type' => 'checkbox', | |
| 17 | - 'desc' => esc_html__( 'Enable this option and enter your OpenAI secret key below to activate this feature.', 'learnpress' ), | |
| 18 | - ], | |
| 19 | - [ | |
| 20 | - 'title' => __( 'Secret Key', 'learnpress' ), | |
| 21 | - 'id' => 'open_ai_secret_key', | |
| 22 | - 'default' => '', | |
| 23 | - 'type' => 'textarea', | |
| 24 | - 'desc' => sprintf( | |
| 25 | - /* translators: 1. profile url */ | |
| 26 | - __( | |
| 27 | - 'Get your OpenAI secret key <a href="%1$s" target="_blank" rel="noopener noreferrer">here</a>. Read the quickstart guide <a href="%2$s" target="_blank" rel="noopener noreferrer">here</a>.', | |
| 28 | - 'learnpress' | |
| 29 | - ), | |
| 30 | - 'https://platform.openai.com/account/api-keys', | |
| 31 | - 'https://platform.openai.com/docs/quickstart' | |
| 32 | - ), | |
| 33 | - ], | |
| 34 | - [ | |
| 35 | - 'title' => __( 'Text Model', 'learnpress' ), | |
| 36 | - 'id' => 'open_ai_text_model_type', | |
| 37 | - 'default' => 'gpt-4.1', | |
| 38 | - 'type' => 'select', | |
| 39 | - 'options' => array( | |
| 40 | - 'gpt-5.2' => esc_html__( 'GPT-5.2', 'learnpress' ), | |
| 41 | - 'gpt-5' => esc_html__( 'GPT-5', 'learnpress' ), | |
| 42 | - 'gpt-5-mini' => esc_html__( 'GPT-5 Mini', 'learnpress' ), | |
| 43 | - 'gpt-5-nano' => esc_html__( 'GPT-5 Nano', 'learnpress' ), | |
| 44 | - 'gpt-4.1' => esc_html__( 'GPT-4.1', 'learnpress' ), | |
| 45 | - //'chatgpt-4o-latest' => esc_html__( 'ChatGPT 4o-Latest', 'learnpress' ), | |
| 46 | - 'gpt-4o' => esc_html__( 'GPT-4o', 'learnpress' ), | |
| 47 | - 'gpt-4o-mini' => esc_html__( 'GPT-4o Mini', 'learnpress' ), | |
| 48 | - 'gpt-4' => esc_html__( 'GPT-4', 'learnpress' ), | |
| 49 | - 'gpt-3.5-turbo' => esc_html__( 'GPT-3.5 Turbo', 'learnpress' ), | |
| 50 | - 'gpt-3.5-turbo-instruct' => esc_html__( 'GPT-3.5 Turbo Instruct', 'learnpress' ), | |
| 51 | - ), | |
| 52 | - ], | |
| 53 | - [ | |
| 54 | - 'title' => __( 'Image Model', 'learnpress' ), | |
| 55 | - 'id' => 'open_ai_image_model_type', | |
| 56 | - 'default' => 'gpt-image-1', | |
| 57 | - 'type' => 'select', | |
| 58 | - 'options' => array( | |
| 59 | - 'gpt-image-1' => esc_html__( 'GPT Image 1', 'learnpress' ), | |
| 60 | - 'dall-e-3' => esc_html__( 'DALL-E 3', 'learnpress' ), | |
| 61 | - 'dall-e-2' => esc_html__( 'DALL-E 2', 'learnpress' ), | |
| 62 | - ), | |
| 63 | - ], | |
| 64 | - [ | |
| 65 | - 'title' => __( 'Frequency Penalty', 'learnpress' ), | |
| 66 | - 'id' => 'open_ai_frequency_penalty_level', | |
| 67 | - 'default' => '0.0', | |
| 68 | - 'type' => 'select', | |
| 69 | - 'options' => array( | |
| 70 | - '-2.0' => esc_html__( 'Very High Repetition (-2.0)', 'learnpress' ), | |
| 71 | - '-1.5' => esc_html__( 'High Repetition (-1.5)', 'learnpress' ), | |
| 72 | - '-1.0' => esc_html__( 'Moderate Repetition (-1.0)', 'learnpress' ), | |
| 73 | - '-0.5' => esc_html__( 'Low Repetition (-0.5)', 'learnpress' ), | |
| 74 | - '0.0' => esc_html__( 'No Penalty (0.0)', 'learnpress' ), | |
| 75 | - '0.5' => esc_html__( 'Low Penalty (0.5)', 'learnpress' ), | |
| 76 | - '1.0' => esc_html__( 'Moderate Penalty (1.0)', 'learnpress' ), | |
| 77 | - '1.5' => esc_html__( 'High Penalty (1.5)', 'learnpress' ), | |
| 78 | - '2.0' => esc_html__( 'Very High Penalty (2.0)', 'learnpress' ), | |
| 79 | - ), | |
| 80 | - ], | |
| 81 | - [ | |
| 82 | - 'title' => __( 'Presence Penalty', 'learnpress' ), | |
| 83 | - 'id' => 'open_ai_presence_penalty_level', | |
| 84 | - 'default' => '0.0', | |
| 85 | - 'type' => 'select', | |
| 86 | - 'options' => array( | |
| 87 | - '-2.0' => esc_html__( 'Very High Repetition Allowed (-2.0)', 'learnpress' ), | |
| 88 | - '-1.5' => esc_html__( 'High Repetition Allowed (-1.5)', 'learnpress' ), | |
| 89 | - '-1.0' => esc_html__( 'Moderate Repetition Allowed (-1.0)', 'learnpress' ), | |
| 90 | - '-0.5' => esc_html__( 'Low Repetition Allowed (-0.5)', 'learnpress' ), | |
| 91 | - '0.0' => esc_html__( 'No Penalty (0.0)', 'learnpress' ), | |
| 92 | - '0.5' => esc_html__( 'Low Penalty (0.5)', 'learnpress' ), | |
| 93 | - '1.0' => esc_html__( 'Moderate Penalty (1.0)', 'learnpress' ), | |
| 94 | - '1.5' => esc_html__( 'High Penalty (1.5)', 'learnpress' ), | |
| 95 | - '2.0' => esc_html__( 'Very High Penalty (2.0)', 'learnpress' ), | |
| 96 | - ), | |
| 97 | - ], | |
| 98 | - [ | |
| 99 | - 'title' => __( 'Creativity Level', 'learnpress' ), | |
| 100 | - 'id' => 'open_ai_creativity_level', | |
| 101 | - 'default' => '1.0', | |
| 102 | - 'type' => 'select', | |
| 103 | - 'options' => array( | |
| 104 | - '0.0' => esc_html__( 'Very Low Creativity (0.0)', 'learnpress' ), | |
| 105 | - '0.2' => esc_html__( 'Low Creativity (0.2)', 'learnpress' ), | |
| 106 | - '0.3' => esc_html__( 'Low Creativity (0.3)', 'learnpress' ), | |
| 107 | - '0.5' => esc_html__( 'Moderate Creativity (0.5)', 'learnpress' ), | |
| 108 | - '0.7' => esc_html__( 'High Creativity (0.7)', 'learnpress' ), | |
| 109 | - '0.8' => esc_html__( 'High Creativity (0.8)', 'learnpress' ), | |
| 110 | - '1.0' => esc_html__( 'Very High Creativity (1.0)', 'learnpress' ), | |
| 111 | - '1.1' => esc_html__( 'Extreme Creativity (1.1)', 'learnpress' ), | |
| 112 | - '1.5' => esc_html__( 'Extreme Creativity (1.5)', 'learnpress' ), | |
| 113 | - '2.0' => esc_html__( 'Maximum Creativity (2.0)', 'learnpress' ), | |
| 114 | - ), | |
| 115 | - ], | |
| 116 | - [ | |
| 117 | - 'title' => __( 'Max Tokens', 'learnpress' ), | |
| 118 | - 'id' => 'open_ai_max_token', | |
| 119 | - 'default' => 4000, | |
| 120 | - 'type' => 'number', | |
| 121 | - 'desc' => esc_html__( 'Set to 0 for no limit.', 'learnpress' ), | |
| 122 | - 'custom_attributes' => array( | |
| 123 | - 'min' => 0, | |
| 124 | - 'step' => 1, | |
| 125 | - ), | |
| 126 | - ], | |
| 127 | - [ | |
| 128 | - 'type' => 'sectionend', | |
| 129 | - ], | |
| 130 | - [ | |
| 131 | - 'title' => esc_html__( 'AI Assistant', 'learnpress' ), | |
| 132 | - 'type' => 'title', | |
| 133 | - ], | |
| 134 | - [ | |
| 135 | - 'title' => esc_html__( 'Enable AI Assistant', 'learnpress' ), | |
| 136 | - 'id' => 'ai_assistant_enabled', | |
| 137 | - 'default' => 'no', | |
| 138 | - 'type' => 'checkbox', | |
| 139 | - 'desc' => esc_html__( 'Enable the AI Assistant for learners on lesson pages. Requires OpenAI to be enabled and a valid secret key.', 'learnpress' ), | |
| 140 | - ], | |
| 141 | - [ | |
| 142 | - 'title' => esc_html__( 'Enable Free Chat', 'learnpress' ), | |
| 143 | - 'id' => 'ai_assistant_free_chat', | |
| 144 | - 'default' => 'no', | |
| 145 | - 'type' => 'checkbox', | |
| 146 | - 'desc' => esc_html__( 'Allow learners to type free-form questions. When disabled, only quick action buttons are shown.', 'learnpress' ), | |
| 147 | - ], | |
| 148 | - [ | |
| 149 | - 'title' => esc_html__( 'Enable Summarize Lesson', 'learnpress' ), | |
| 150 | - 'id' => 'ai_assistant_summarize_enabled', | |
| 151 | - 'default' => 'yes', | |
| 152 | - 'type' => 'checkbox', | |
| 153 | - 'desc' => esc_html__( 'Allow learners to use the Summarize Lesson action.', 'learnpress' ), | |
| 154 | - ], | |
| 155 | - [ | |
| 156 | - 'title' => esc_html__( 'Enable Explain Concept', 'learnpress' ), | |
| 157 | - 'id' => 'ai_assistant_explain_enabled', | |
| 158 | - 'default' => 'yes', | |
| 159 | - 'type' => 'checkbox', | |
| 160 | - 'desc' => esc_html__( 'Allow learners to use the Explain Concept action.', 'learnpress' ), | |
| 161 | - ], | |
| 162 | - [ | |
| 163 | - 'title' => esc_html__( 'Enable Quick Quiz', 'learnpress' ), | |
| 164 | - 'id' => 'ai_assistant_quick_quiz_enabled', | |
| 165 | - 'default' => 'yes', | |
| 166 | - 'type' => 'checkbox', | |
| 167 | - 'desc' => esc_html__( 'Allow learners to start and continue quick quizzes.', 'learnpress' ), | |
| 168 | - ], | |
| 169 | - [ | |
| 170 | - 'title' => esc_html__( 'Enable Smart Review', 'learnpress' ), | |
| 171 | - 'id' => 'ai_assistant_smart_review_enabled', | |
| 172 | - 'default' => 'yes', | |
| 173 | - 'type' => 'checkbox', | |
| 174 | - 'desc' => esc_html__( 'Allow learners to use the Smart Review action.', 'learnpress' ), | |
| 175 | - ], | |
| 176 | - [ | |
| 177 | - 'title' => esc_html__( 'Max Usage Tokens Per Day', 'learnpress' ), | |
| 178 | - 'id' => 'ai_assistant_max_usage_tokens_per_day', | |
| 179 | - 'default' => 0, | |
| 180 | - 'type' => 'number', | |
| 181 | - 'desc' => esc_html__( 'Maximum total AI tokens each learner can use per day. Set to 0 for no limit.', 'learnpress' ), | |
| 182 | - 'custom_attributes' => [ | |
| 183 | - 'min' => 0, | |
| 184 | - 'step' => 1, | |
| 185 | - ], | |
| 186 | - ], | |
| 187 | - [ | |
| 188 | - 'type' => 'sectionend', | |
| 189 | - ], | |
| 190 | - ] | |
| 191 | - ), | |
| 192 | - ) | |
| 193 | -); | |
| 1 | +<?php | |
| 2 | +return apply_filters( | |
| 3 | + 'lp/settings/open-ai', | |
| 4 | + array_merge( | |
| 5 | + apply_filters( | |
| 6 | + 'learn-press/course-settings-fields/single', | |
| 7 | + [ | |
| 8 | + [ | |
| 9 | + 'title' => esc_html__( 'OpenAI', 'learnpress' ), | |
| 10 | + 'type' => 'title', | |
| 11 | + ], | |
| 12 | + [ | |
| 13 | + 'title' => esc_html__( 'Enable OpenAI', 'learnpress' ), | |
| 14 | + 'id' => 'enable_open_ai', | |
| 15 | + 'default' => 'no', | |
| 16 | + 'type' => 'checkbox', | |
| 17 | + 'desc' => esc_html__( 'Enable this option and enter your OpenAI secret key below to activate this feature.', 'learnpress' ), | |
| 18 | + ], | |
| 19 | + [ | |
| 20 | + 'title' => __( 'Secret Key', 'learnpress' ), | |
| 21 | + 'id' => 'open_ai_secret_key', | |
| 22 | + 'default' => '', | |
| 23 | + 'type' => 'textarea', | |
| 24 | + 'desc' => sprintf( | |
| 25 | + /* translators: 1. profile url */ | |
| 26 | + __( | |
| 27 | + 'Get your OpenAI secret key <a href="%1$s" target="_blank" rel="noopener noreferrer">here</a>. Read the quickstart guide <a href="%2$s" target="_blank" rel="noopener noreferrer">here</a>.', | |
| 28 | + 'learnpress' | |
| 29 | + ), | |
| 30 | + 'https://platform.openai.com/account/api-keys', | |
| 31 | + 'https://platform.openai.com/docs/quickstart' | |
| 32 | + ), | |
| 33 | + ], | |
| 34 | + [ | |
| 35 | + 'title' => __( 'Text Model', 'learnpress' ), | |
| 36 | + 'id' => 'open_ai_text_model_type', | |
| 37 | + 'default' => 'gpt-4.1', | |
| 38 | + 'type' => 'select', | |
| 39 | + 'options' => array( | |
| 40 | + 'gpt-5.6' => esc_html__( 'GPT-5.6', 'learnpress' ), | |
| 41 | + 'gpt-5.5' => esc_html__( 'GPT-5.5', 'learnpress' ), | |
| 42 | + 'gpt-5.4' => esc_html__( 'GPT-5.4', 'learnpress' ), | |
| 43 | + 'gpt-5.3' => esc_html__( 'GPT-5.3', 'learnpress' ), | |
| 44 | + 'gpt-5.2' => esc_html__( 'GPT-5.2', 'learnpress' ), | |
| 45 | + 'gpt-5.1' => esc_html__( 'GPT-5.1', 'learnpress' ), | |
| 46 | + 'gpt-5' => esc_html__( 'GPT-5', 'learnpress' ), | |
| 47 | + 'gpt-5-mini' => esc_html__( 'GPT-5 Mini', 'learnpress' ), | |
| 48 | + 'gpt-5-nano' => esc_html__( 'GPT-5 Nano', 'learnpress' ), | |
| 49 | + 'gpt-4.1' => esc_html__( 'GPT-4.1', 'learnpress' ), | |
| 50 | + ), | |
| 51 | + ], | |
| 52 | + [ | |
| 53 | + 'title' => __( 'Image Model', 'learnpress' ), | |
| 54 | + 'id' => 'open_ai_image_model_type', | |
| 55 | + 'default' => 'gpt-image-1', | |
| 56 | + 'type' => 'select', | |
| 57 | + 'options' => array( | |
| 58 | + 'gpt-image-1' => esc_html__( 'GPT Image 1', 'learnpress' ), | |
| 59 | + 'gpt-image-2' => esc_html__( 'GPT Image 2', 'learnpress' ), | |
| 60 | + ), | |
| 61 | + ], | |
| 62 | + [ | |
| 63 | + 'title' => __( 'Frequency Penalty', 'learnpress' ), | |
| 64 | + 'id' => 'open_ai_frequency_penalty_level', | |
| 65 | + 'default' => '0.0', | |
| 66 | + 'type' => 'select', | |
| 67 | + 'options' => array( | |
| 68 | + '-2.0' => esc_html__( 'Very High Repetition (-2.0)', 'learnpress' ), | |
| 69 | + '-1.5' => esc_html__( 'High Repetition (-1.5)', 'learnpress' ), | |
| 70 | + '-1.0' => esc_html__( 'Moderate Repetition (-1.0)', 'learnpress' ), | |
| 71 | + '-0.5' => esc_html__( 'Low Repetition (-0.5)', 'learnpress' ), | |
| 72 | + '0.0' => esc_html__( 'No Penalty (0.0)', 'learnpress' ), | |
| 73 | + '0.5' => esc_html__( 'Low Penalty (0.5)', 'learnpress' ), | |
| 74 | + '1.0' => esc_html__( 'Moderate Penalty (1.0)', 'learnpress' ), | |
| 75 | + '1.5' => esc_html__( 'High Penalty (1.5)', 'learnpress' ), | |
| 76 | + '2.0' => esc_html__( 'Very High Penalty (2.0)', 'learnpress' ), | |
| 77 | + ), | |
| 78 | + ], | |
| 79 | + [ | |
| 80 | + 'title' => __( 'Presence Penalty', 'learnpress' ), | |
| 81 | + 'id' => 'open_ai_presence_penalty_level', | |
| 82 | + 'default' => '0.0', | |
| 83 | + 'type' => 'select', | |
| 84 | + 'options' => array( | |
| 85 | + '-2.0' => esc_html__( 'Very High Repetition Allowed (-2.0)', 'learnpress' ), | |
| 86 | + '-1.5' => esc_html__( 'High Repetition Allowed (-1.5)', 'learnpress' ), | |
| 87 | + '-1.0' => esc_html__( 'Moderate Repetition Allowed (-1.0)', 'learnpress' ), | |
| 88 | + '-0.5' => esc_html__( 'Low Repetition Allowed (-0.5)', 'learnpress' ), | |
| 89 | + '0.0' => esc_html__( 'No Penalty (0.0)', 'learnpress' ), | |
| 90 | + '0.5' => esc_html__( 'Low Penalty (0.5)', 'learnpress' ), | |
| 91 | + '1.0' => esc_html__( 'Moderate Penalty (1.0)', 'learnpress' ), | |
| 92 | + '1.5' => esc_html__( 'High Penalty (1.5)', 'learnpress' ), | |
| 93 | + '2.0' => esc_html__( 'Very High Penalty (2.0)', 'learnpress' ), | |
| 94 | + ), | |
| 95 | + ], | |
| 96 | + [ | |
| 97 | + 'title' => __( 'Creativity Level', 'learnpress' ), | |
| 98 | + 'id' => 'open_ai_creativity_level', | |
| 99 | + 'default' => '1.0', | |
| 100 | + 'type' => 'select', | |
| 101 | + 'options' => array( | |
| 102 | + '0.0' => esc_html__( 'Very Low Creativity (0.0)', 'learnpress' ), | |
| 103 | + '0.2' => esc_html__( 'Low Creativity (0.2)', 'learnpress' ), | |
| 104 | + '0.3' => esc_html__( 'Low Creativity (0.3)', 'learnpress' ), | |
| 105 | + '0.5' => esc_html__( 'Moderate Creativity (0.5)', 'learnpress' ), | |
| 106 | + '0.7' => esc_html__( 'High Creativity (0.7)', 'learnpress' ), | |
| 107 | + '0.8' => esc_html__( 'High Creativity (0.8)', 'learnpress' ), | |
| 108 | + '1.0' => esc_html__( 'Very High Creativity (1.0)', 'learnpress' ), | |
| 109 | + '1.1' => esc_html__( 'Extreme Creativity (1.1)', 'learnpress' ), | |
| 110 | + '1.5' => esc_html__( 'Extreme Creativity (1.5)', 'learnpress' ), | |
| 111 | + '2.0' => esc_html__( 'Maximum Creativity (2.0)', 'learnpress' ), | |
| 112 | + ), | |
| 113 | + ], | |
| 114 | + [ | |
| 115 | + 'title' => __( 'Max Tokens', 'learnpress' ), | |
| 116 | + 'id' => 'open_ai_max_token', | |
| 117 | + 'default' => 4000, | |
| 118 | + 'type' => 'number', | |
| 119 | + 'desc' => esc_html__( 'Set to 0 for no limit.', 'learnpress' ), | |
| 120 | + 'custom_attributes' => array( | |
| 121 | + 'min' => 0, | |
| 122 | + 'step' => 1, | |
| 123 | + ), | |
| 124 | + ], | |
| 125 | + [ | |
| 126 | + 'type' => 'sectionend', | |
| 127 | + ], | |
| 128 | + [ | |
| 129 | + 'title' => esc_html__( 'AI Assistant', 'learnpress' ), | |
| 130 | + 'type' => 'title', | |
| 131 | + ], | |
| 132 | + [ | |
| 133 | + 'title' => esc_html__( 'Enable AI Assistant', 'learnpress' ), | |
| 134 | + 'id' => 'ai_assistant_enabled', | |
| 135 | + 'default' => 'no', | |
| 136 | + 'type' => 'checkbox', | |
| 137 | + 'desc' => esc_html__( 'Enable the AI Assistant for learners on lesson pages. Requires OpenAI to be enabled and a valid secret key.', 'learnpress' ), | |
| 138 | + ], | |
| 139 | + [ | |
| 140 | + 'title' => esc_html__( 'Enable Free Chat', 'learnpress' ), | |
| 141 | + 'id' => 'ai_assistant_free_chat', | |
| 142 | + 'default' => 'no', | |
| 143 | + 'type' => 'checkbox', | |
| 144 | + 'desc' => esc_html__( 'Allow learners to type free-form questions. When disabled, only quick action buttons are shown.', 'learnpress' ), | |
| 145 | + ], | |
| 146 | + [ | |
| 147 | + 'title' => esc_html__( 'Enable Summarize Lesson', 'learnpress' ), | |
| 148 | + 'id' => 'ai_assistant_summarize_enabled', | |
| 149 | + 'default' => 'yes', | |
| 150 | + 'type' => 'checkbox', | |
| 151 | + 'desc' => esc_html__( 'Allow learners to use the Summarize Lesson action.', 'learnpress' ), | |
| 152 | + ], | |
| 153 | + [ | |
| 154 | + 'title' => esc_html__( 'Enable Explain Concept', 'learnpress' ), | |
| 155 | + 'id' => 'ai_assistant_explain_enabled', | |
| 156 | + 'default' => 'yes', | |
| 157 | + 'type' => 'checkbox', | |
| 158 | + 'desc' => esc_html__( 'Allow learners to use the Explain Concept action.', 'learnpress' ), | |
| 159 | + ], | |
| 160 | + [ | |
| 161 | + 'title' => esc_html__( 'Enable Quick Quiz', 'learnpress' ), | |
| 162 | + 'id' => 'ai_assistant_quick_quiz_enabled', | |
| 163 | + 'default' => 'yes', | |
| 164 | + 'type' => 'checkbox', | |
| 165 | + 'desc' => esc_html__( 'Allow learners to start and continue quick quizzes.', 'learnpress' ), | |
| 166 | + ], | |
| 167 | + [ | |
| 168 | + 'title' => esc_html__( 'Enable Smart Review', 'learnpress' ), | |
| 169 | + 'id' => 'ai_assistant_smart_review_enabled', | |
| 170 | + 'default' => 'yes', | |
| 171 | + 'type' => 'checkbox', | |
| 172 | + 'desc' => esc_html__( 'Allow learners to use the Smart Review action.', 'learnpress' ), | |
| 173 | + ], | |
| 174 | + [ | |
| 175 | + 'title' => esc_html__( 'Max Usage Tokens Per Day', 'learnpress' ), | |
| 176 | + 'id' => 'ai_assistant_max_usage_tokens_per_day', | |
| 177 | + 'default' => 0, | |
| 178 | + 'type' => 'number', | |
| 179 | + 'desc' => esc_html__( 'Maximum total AI tokens each learner can use per day. Set to 0 for no limit.', 'learnpress' ), | |
| 180 | + 'custom_attributes' => [ | |
| 181 | + 'min' => 0, | |
| 182 | + 'step' => 1, | |
| 183 | + ], | |
| 184 | + ], | |
| 185 | + [ | |
| 186 | + 'type' => 'sectionend', | |
| 187 | + ], | |
| 188 | + ] | |
| 189 | + ), | |
| 190 | + ) | |
| 191 | +); | |