Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/aimogen-pro/aiomatic-automation.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + defined('ABSPATH') or die();
3 + function aiomatic_omniblocks_default_block_types()
4 + {
5 + $amazon_extended_shortcodes = array('product_score_', 'product_edition_', 'product_language_', 'product_pages_count_', 'product_publication_date_', 'product_contributors_', 'product_manufacturer_', 'product_binding_', 'product_product_group_', 'product_rating_', 'product_ean_', 'product_part_no_', 'product_model_', 'product_warranty_', 'product_color_', 'product_is_adult_', 'product_dimensions_', 'product_date_', 'product_size_', 'product_unit_count_');
6 + $amazon_shortcodes = array('product_title_', 'product_description_', 'product_url_', 'product_price_', 'product_list_price_', 'product_image_', 'product_cart_url_', 'product_images_urls_', 'product_images_', 'product_reviews_');
7 + $aiomatic_Main_Settings = get_option('aiomatic_Main_Settings', false);
8 + if(!function_exists('is_plugin_active'))
9 + {
10 + include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
11 + }
12 + $amaz_ext_active = false;
13 + if (is_plugin_active('aiomatic-extension-amazon-api/aiomatic-extension-amazon-api.php'))
14 + {
15 + $amaz_ext_active = true;
16 + }
17 + if(isset($aiomatic_Main_Settings['amazon_app_id']) && trim($aiomatic_Main_Settings['amazon_app_id']) != '' && isset($aiomatic_Main_Settings['amazon_app_secret']) && trim($aiomatic_Main_Settings['amazon_app_secret']) != '' && $amaz_ext_active !== false)
18 + {
19 + $amazon_shortcodes = array_merge($amazon_shortcodes, $amazon_extended_shortcodes);
20 + }
21 + $all_blocks = apply_filters('aiomniblocks_block_types', [
22 + 'ai_text' => [
23 + 'id' => 'ai_text',
24 + 'name' => esc_html__('AI Text', 'aiomatic-automatic-ai-content-writer'),
25 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
26 + 'required_plugin' => array(),
27 + 'description' => esc_html__('Generates AI textual content using different models', 'aiomatic-automatic-ai-content-writer'),
28 + 'type' => 'create',
29 + 'shortcodes' => array('ai_text_'),
30 + 'parameters' => array(
31 + 'prompt' => array(
32 + 'type' => 'textarea',
33 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
34 + 'default_value' => '',
35 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the content writer', 'aiomatic-automatic-ai-content-writer'),
36 + 'description' => esc_html__('Set the AI prompt which will be sent to the content writer. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
37 + ),
38 + 'assistant_id' => array(
39 + 'type' => 'assistant_select',
40 + 'title' => esc_html__('AI Assistant', 'aiomatic-automatic-ai-content-writer'),
41 + 'default_value' => '',
42 + 'description' => esc_html__('Select the AI Assistant to be used with the AI writer. If you select an assistant, a model cannot be selected any more, but instead, the model assigned to the assistant will be used.', 'aiomatic-automatic-ai-content-writer')
43 + ),
44 + 'model' => array(
45 + 'type' => 'model_select',
46 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
47 + 'default_value' => '',
48 + 'description' => esc_html__('Select the model to be used with the AI writer.', 'aiomatic-automatic-ai-content-writer')
49 + )
50 + )
51 + ],
52 + 'ai_text_foreach' => [
53 + 'id' => 'ai_text_foreach',
54 + 'name' => esc_html__('AI Text For Each Line Of Input', 'aiomatic-automatic-ai-content-writer'),
55 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
56 + 'required_plugin' => array(),
57 + 'description' => esc_html__('Generates AI textual content using different models, calling the AI writer for each line of the input text (with respective prompt changes)', 'aiomatic-automatic-ai-content-writer'),
58 + 'type' => 'create',
59 + 'shortcodes' => array('ai_text_foreach_'),
60 + 'parameters' => array(
61 + 'multiline_input' => array(
62 + 'type' => 'textarea',
63 + 'title' => esc_html__('Multiline Input', 'aiomatic-automatic-ai-content-writer'),
64 + 'default_value' => '',
65 + 'placeholder' => esc_html__('Set the multiline input, which will be used to call the AI', 'aiomatic-automatic-ai-content-writer'),
66 + 'description' => esc_html__('Set the multiline input which will be cut to lines and will be used to call the below prompt, for each of its lines. This input will be cut up to multiple lines and will create the %%current_input_line%% shortcode, usable below. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
67 + ),
68 + 'prompt' => array(
69 + 'type' => 'textarea',
70 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
71 + 'default_value' => '',
72 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the content writer', 'aiomatic-automatic-ai-content-writer'),
73 + 'description' => esc_html__('Set the AI prompt which will be sent to the content writer. Additional shortcodes you can use: %%current_input_line%%, %%current_input_line_counter%%, %%all_input_lines%%, %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
74 + ),
75 + 'assistant_id' => array(
76 + 'type' => 'assistant_select',
77 + 'title' => esc_html__('AI Assistant', 'aiomatic-automatic-ai-content-writer'),
78 + 'default_value' => '',
79 + 'description' => esc_html__('Select the AI Assistant to be used with the AI writer. If you select an assistant, a model cannot be selected any more, but instead, the model assigned to the assistant will be used.', 'aiomatic-automatic-ai-content-writer')
80 + ),
81 + 'model' => array(
82 + 'type' => 'model_select',
83 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
84 + 'default_value' => '',
85 + 'description' => esc_html__('Select the model to be used with the AI writer.', 'aiomatic-automatic-ai-content-writer')
86 + ),
87 + 'prepend' => array(
88 + 'type' => 'textarea',
89 + 'title' => esc_html__('Text To Prepend To Each Content Block', 'aiomatic-automatic-ai-content-writer'),
90 + 'default_value' => '',
91 + 'placeholder' => esc_html__('Text to prepend', 'aiomatic-automatic-ai-content-writer'),
92 + 'description' => esc_html__('Set the text to be prepend to each content block which was created by this OmniBlock.', 'aiomatic-automatic-ai-content-writer')
93 + ),
94 + 'append' => array(
95 + 'type' => 'textarea',
96 + 'title' => esc_html__('Text To Append To Each Content Block', 'aiomatic-automatic-ai-content-writer'),
97 + 'default_value' => '',
98 + 'placeholder' => esc_html__('Text to append', 'aiomatic-automatic-ai-content-writer'),
99 + 'description' => esc_html__('Set the text to be appended to each content block which was created by this OmniBlock.', 'aiomatic-automatic-ai-content-writer')
100 + ),
101 + 'max_runs' => array(
102 + 'type' => 'number',
103 + 'title' => esc_html__('Set The Maximum Number Of Lines To Process', 'aiomatic-automatic-ai-content-writer'),
104 + 'default_value' => '',
105 + 'placeholder' => esc_html__('Max lines to process', 'aiomatic-automatic-ai-content-writer'),
106 + 'description' => esc_html__('Set the maximum number of lines to process. This field is optional.', 'aiomatic-automatic-ai-content-writer')
107 + )
108 + )
109 + ],
110 + 'ai_vision' => [
111 + 'id' => 'ai_vision',
112 + 'name' => esc_html__('AI Vision', 'aiomatic-automatic-ai-content-writer'),
113 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
114 + 'required_plugin' => array(),
115 + 'description' => esc_html__('Generates AI textual content using different models, using AI vision of images.', 'aiomatic-automatic-ai-content-writer'),
116 + 'type' => 'create',
117 + 'shortcodes' => array('ai_vision_'),
118 + 'parameters' => array(
119 + 'image_url' => array(
120 + 'type' => 'textarea',
121 + 'title' => esc_html__('Image URL', 'aiomatic-automatic-ai-content-writer'),
122 + 'default_value' => '',
123 + 'placeholder' => esc_html__('Set the image URL to be analyzed using AI Vision', 'aiomatic-automatic-ai-content-writer'),
124 + 'description' => esc_html__('Set the image URL to be analyzed using AI Vision. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
125 + ),
126 + 'prompt' => array(
127 + 'type' => 'textarea',
128 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
129 + 'default_value' => '',
130 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the content writer', 'aiomatic-automatic-ai-content-writer'),
131 + 'description' => esc_html__('Set the AI prompt which will be sent to the content writer. Additional shortcodes you can use: %%current_input_line%%, %%current_input_line_counter%%, %%all_input_lines%%, %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
132 + ),
133 + 'assistant_id' => array(
134 + 'type' => 'assistant_select',
135 + 'title' => esc_html__('AI Assistant', 'aiomatic-automatic-ai-content-writer'),
136 + 'default_value' => '',
137 + 'description' => esc_html__('Select the AI Assistant to be used with the AI writer. If you select an assistant, a model cannot be selected any more, but instead, the model assigned to the assistant will be used.', 'aiomatic-automatic-ai-content-writer')
138 + ),
139 + 'model' => array(
140 + 'type' => 'model_select',
141 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
142 + 'default_value' => '',
143 + 'description' => esc_html__('Select the model to be used with the AI writer.', 'aiomatic-automatic-ai-content-writer')
144 + )
145 + )
146 + ],
147 + 'dalle_ai_image' => [
148 + 'id' => 'dalle_ai_image',
149 + 'name' => esc_html__('AI Image Dall-E', 'aiomatic-automatic-ai-content-writer'),
150 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
151 + 'required_plugin' => array(),
152 + 'description' => esc_html__('Generates AI images using different Dall-E models', 'aiomatic-automatic-ai-content-writer'),
153 + 'type' => 'create',
154 + 'shortcodes' => array('dalle_image_'),
155 + 'parameters' => array(
156 + 'prompt' => array(
157 + 'type' => 'textarea',
158 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
159 + 'default_value' => '',
160 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the image generator', 'aiomatic-automatic-ai-content-writer'),
161 + 'description' => esc_html__('Set the AI prompt which will be sent to the image generator. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
162 + ),
163 + 'model' => array(
164 + 'type' => 'dalle_image_model_select',
165 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
166 + 'default_value' => '',
167 + 'description' => esc_html__('Set the AI model to be used for the image generator.', 'aiomatic-automatic-ai-content-writer')
168 + ),
169 + 'image_size' => array(
170 + 'type' => 'dalle_image_size_select',
171 + 'title' => esc_html__('Image Size', 'aiomatic-automatic-ai-content-writer'),
172 + 'default_value' => '',
173 + 'description' => esc_html__('Set the image size to be used for the image generator.', 'aiomatic-automatic-ai-content-writer')
174 + )
175 + )
176 + ],
177 + 'stable_ai_image' => [
178 + 'id' => 'stable_ai_image',
179 + 'name' => esc_html__('AI Image Stable Diffusion', 'aiomatic-automatic-ai-content-writer'),
180 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
181 + 'required_plugin' => array(),
182 + 'description' => esc_html__('Generates AI images using different Stable Diffusion models', 'aiomatic-automatic-ai-content-writer'),
183 + 'type' => 'create',
184 + 'shortcodes' => array('stability_image_'),
185 + 'parameters' => array(
186 + 'prompt' => array(
187 + 'type' => 'textarea',
188 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
189 + 'default_value' => '',
190 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the image generator', 'aiomatic-automatic-ai-content-writer'),
191 + 'description' => esc_html__('Set the AI prompt which will be sent to the image generator. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
192 + ),
193 + 'model' => array(
194 + 'type' => 'stable_image_model_select',
195 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
196 + 'default_value' => '',
197 + 'description' => esc_html__('Set the AI model to be used for the image generator.', 'aiomatic-automatic-ai-content-writer')
198 + ),
199 + 'image_size' => array(
200 + 'type' => 'stable_image_size_select',
201 + 'title' => esc_html__('Image Size', 'aiomatic-automatic-ai-content-writer'),
202 + 'default_value' => '',
203 + 'description' => esc_html__('Set the image size to be used for the image generator.', 'aiomatic-automatic-ai-content-writer')
204 + )
205 + )
206 + ],
207 + 'google_ai_image' => [
208 + 'id' => 'google_ai_image',
209 + 'name' => esc_html__('AI Image Google', 'aiomatic-automatic-ai-content-writer'),
210 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
211 + 'required_plugin' => array(),
212 + 'description' => esc_html__('Generates AI images using different Google models', 'aiomatic-automatic-ai-content-writer'),
213 + 'type' => 'create',
214 + 'shortcodes' => array('google_image_'),
215 + 'parameters' => array(
216 + 'prompt' => array(
217 + 'type' => 'textarea',
218 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
219 + 'default_value' => '',
220 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the image generator', 'aiomatic-automatic-ai-content-writer'),
221 + 'description' => esc_html__('Set the AI prompt which will be sent to the image generator. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
222 + ),
223 + 'model' => array(
224 + 'type' => 'google_image_model_select',
225 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
226 + 'default_value' => '',
227 + 'description' => esc_html__('Set the AI model to be used for the image generator.', 'aiomatic-automatic-ai-content-writer')
228 + )
229 + )
230 + ],
231 + 'midjourney_ai_image' => [
232 + 'id' => 'midjourney_ai_image',
233 + 'name' => esc_html__('AI Image Midjourney', 'aiomatic-automatic-ai-content-writer'),
234 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
235 + 'required_plugin' => array(),
236 + 'description' => esc_html__('Generates AI images using different Midjourney models', 'aiomatic-automatic-ai-content-writer'),
237 + 'type' => 'create',
238 + 'shortcodes' => array('midjourney_image_'),
239 + 'parameters' => array(
240 + 'prompt' => array(
241 + 'type' => 'textarea',
242 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
243 + 'default_value' => '',
244 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the image generator', 'aiomatic-automatic-ai-content-writer'),
245 + 'description' => esc_html__('Set the AI prompt which will be sent to the image generator. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
246 + ),
247 + 'image_size' => array(
248 + 'type' => 'midjourney_image_size_select',
249 + 'title' => esc_html__('Image Size', 'aiomatic-automatic-ai-content-writer'),
250 + 'default_value' => '',
251 + 'description' => esc_html__('Set the image size to be used for the image generator.', 'aiomatic-automatic-ai-content-writer')
252 + )
253 + )
254 + ],
255 + 'replicate_ai_image' => [
256 + 'id' => 'replicate_ai_image',
257 + 'name' => esc_html__('AI Image Replicate', 'aiomatic-automatic-ai-content-writer'),
258 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
259 + 'required_plugin' => array(),
260 + 'description' => esc_html__('Generates AI images using different Replicate models', 'aiomatic-automatic-ai-content-writer'),
261 + 'type' => 'create',
262 + 'shortcodes' => array('replicate_image_'),
263 + 'parameters' => array(
264 + 'prompt' => array(
265 + 'type' => 'textarea',
266 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
267 + 'default_value' => '',
268 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the image generator', 'aiomatic-automatic-ai-content-writer'),
269 + 'description' => esc_html__('Set the AI prompt which will be sent to the image generator. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
270 + ),
271 + 'image_size' => array(
272 + 'type' => 'replicate_image_size_select',
273 + 'title' => esc_html__('Image Size', 'aiomatic-automatic-ai-content-writer'),
274 + 'default_value' => '',
275 + 'description' => esc_html__('Set the image size to be used for the image generator.', 'aiomatic-automatic-ai-content-writer')
276 + )
277 + )
278 + ],
279 + 'ideogram_ai_image' => [
280 + 'id' => 'ideogram_ai_image',
281 + 'name' => esc_html__('AI Image Ideogram', 'aiomatic-automatic-ai-content-writer'),
282 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
283 + 'required_plugin' => array(),
284 + 'description' => esc_html__('Generates AI images using different Ideogram models', 'aiomatic-automatic-ai-content-writer'),
285 + 'type' => 'create',
286 + 'shortcodes' => array('ideogram_image_'),
287 + 'parameters' => array(
288 + 'prompt' => array(
289 + 'type' => 'textarea',
290 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
291 + 'default_value' => '',
292 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the image generator', 'aiomatic-automatic-ai-content-writer'),
293 + 'description' => esc_html__('Set the AI prompt which will be sent to the image generator. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
294 + ),
295 + 'image_size' => array(
296 + 'type' => 'ideogram_image_size_select',
297 + 'title' => esc_html__('Image Size', 'aiomatic-automatic-ai-content-writer'),
298 + 'default_value' => '',
299 + 'description' => esc_html__('Set the image size to be used for the image generator.', 'aiomatic-automatic-ai-content-writer')
300 + )
301 + )
302 + ],
303 + 'stable_ai_video' => [
304 + 'id' => 'stable_ai_video',
305 + 'name' => esc_html__('AI Video Stable Diffusion', 'aiomatic-automatic-ai-content-writer'),
306 + 'category' => esc_html__(' - AI Content Blocks', 'aiomatic-automatic-ai-content-writer'),
307 + 'required_plugin' => array(),
308 + 'description' => esc_html__('Generates AI videos using different source images', 'aiomatic-automatic-ai-content-writer'),
309 + 'type' => 'create',
310 + 'shortcodes' => array('stability_video_'),
311 + 'parameters' => array(
312 + 'image_url' => array(
313 + 'type' => 'url',
314 + 'title' => esc_html__('Source Image URL', 'aiomatic-automatic-ai-content-writer'),
315 + 'default_value' => '',
316 + 'placeholder' => esc_html__('Set the source image URL which will be sent to the video generator', 'aiomatic-automatic-ai-content-writer'),
317 + 'description' => esc_html__('Set the source image URL which will be sent to the video generator.', 'aiomatic-automatic-ai-content-writer')
318 + ),
319 + 'image_size' => array(
320 + 'type' => 'stable_video_size_select',
321 + 'title' => esc_html__('Image Size', 'aiomatic-automatic-ai-content-writer'),
322 + 'default_value' => '',
323 + 'description' => esc_html__('Set the size of the image which will be sent to the AI video generator. Original images will be resized to the selected image size before sending.', 'aiomatic-automatic-ai-content-writer')
324 + ),
325 + )
326 + ],
327 + 'plain_text' => [
328 + 'id' => 'plain_text',
329 + 'name' => esc_html__('Plain Text', 'aiomatic-automatic-ai-content-writer'),
330 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
331 + 'required_plugin' => array(),
332 + 'description' => esc_html__('Add plain text to this OmniBlock, with Spintax and shortcode rendering support.', 'aiomatic-automatic-ai-content-writer'),
333 + 'type' => 'create',
334 + 'shortcodes' => array('plain_text_'),
335 + 'parameters' => array(
336 + 'input_text' => array(
337 + 'type' => 'textarea',
338 + 'title' => esc_html__('Text', 'aiomatic-automatic-ai-content-writer'),
339 + 'default_value' => '',
340 + 'placeholder' => esc_html__('Add your text (shortcodes and Spintax supported)', 'aiomatic-automatic-ai-content-writer'),
341 + 'description' => esc_html__('Add your text (shortcodes and Spintax supported)', 'aiomatic-automatic-ai-content-writer')
342 + )
343 + )
344 + ],
345 + 'diy' => [
346 + 'id' => 'diy',
347 + 'name' => esc_html__('DIY OmniBlock', 'aiomatic-automatic-ai-content-writer'),
348 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
349 + 'required_plugin' => array(),
350 + 'description' => esc_html__('Add your own PHP code in a custom WordPress filter, and get the results of it in this OmniBlock type. WordPress Filter name is: %%filter_name%%', 'aiomatic-automatic-ai-content-writer'),
351 + 'type' => 'create',
352 + 'shortcodes' => array('diy_'),
353 + 'parameters' => array(
354 + 'input_text' => array(
355 + 'type' => 'textarea',
356 + 'title' => esc_html__('Text', 'aiomatic-automatic-ai-content-writer'),
357 + 'default_value' => '',
358 + 'placeholder' => esc_html__('Add the input for the filter', 'aiomatic-automatic-ai-content-writer'),
359 + 'description' => esc_html__('Add the input for the filter', 'aiomatic-automatic-ai-content-writer')
360 + )
361 + )
362 + ],
363 + 'crawl_sites' => [
364 + 'id' => 'crawl_sites',
365 + 'name' => esc_html__('Scrape Sites', 'aiomatic-automatic-ai-content-writer'),
366 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
367 + 'required_plugin' => array(),
368 + 'description' => esc_html__('Scrapes data from websites and uses it for content creation', 'aiomatic-automatic-ai-content-writer'),
369 + 'type' => 'create',
370 + 'shortcodes' => array('scraped_content_', 'scraped_content_plain_'),
371 + 'parameters' => array(
372 + 'url' => array(
373 + 'type' => 'url',
374 + 'title' => esc_html__('Scraped URL', 'aiomatic-automatic-ai-content-writer'),
375 + 'default_value' => '',
376 + 'placeholder' => esc_html__('Set the URL to be scraped for data', 'aiomatic-automatic-ai-content-writer'),
377 + 'description' => esc_html__('Set the URL to be scraped for data. You can also add multiple URLs (one on each line), from which a random one will be selected. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
378 + ),
379 + 'scrape_method' => array(
380 + 'type' => 'scraper_select',
381 + 'title' => esc_html__('Scraping Method', 'aiomatic-automatic-ai-content-writer'),
382 + 'default_value' => '',
383 + 'description' => esc_html__('Select the method to be used for scraping. This will affect the %%item_scraped_data%% shortcode.', 'aiomatic-automatic-ai-content-writer')
384 + ),
385 + 'scrape_selector' => array(
386 + 'type' => 'scraper_type',
387 + 'title' => esc_html__('Scraping Query Selector', 'aiomatic-automatic-ai-content-writer'),
388 + 'default_value' => '',
389 + 'description' => esc_html__('Select the query type you want to search for the article full content.', 'aiomatic-automatic-ai-content-writer')
390 + ),
391 + 'scrape_string' => array(
392 + 'type' => 'scraper_string',
393 + 'title' => esc_html__('Scraping Query String', 'aiomatic-automatic-ai-content-writer'),
394 + 'default_value' => '',
395 + 'placeholder' => esc_html__('Input the search query for full content searching', 'aiomatic-automatic-ai-content-writer'),
396 + 'description' => esc_html__('Input the search query for full content searching. This can be the ID or class name you want to search for, the regex expression you want to apply or the XPath/CSS Selector Expression you want to query for. You can also enter a comma separated list of selectors, in this case, the plugin will get the results for all. If you leave this field blank, content will be automatically detected for you. Multiple expressions supported, each on a different line.', 'aiomatic-automatic-ai-content-writer')
397 + ),
398 + 'strip_tags' => array(
399 + 'type' => 'checkbox',
400 + 'title' => esc_html__('Strip All HTML Tags', 'aiomatic-automatic-ai-content-writer'),
401 + 'default_value' => '',
402 + 'description' => esc_html__('Select if you want to remove all HTML tags from the scraped content and leave only the plain textual content in it.', 'aiomatic-automatic-ai-content-writer')
403 + ),
404 + 'max_chars' => array(
405 + 'type' => 'number',
406 + 'title' => esc_html__('Maximum # Of Characters To Keep', 'aiomatic-automatic-ai-content-writer'),
407 + 'default_value' => '',
408 + 'placeholder' => esc_html__('Set the maximum number of characters to keep from the scraped data', 'aiomatic-automatic-ai-content-writer'),
409 + 'description' => esc_html__('Set the maximum number of characters to keep from the scraped data.', 'aiomatic-automatic-ai-content-writer')
410 + )
411 + )
412 + ],
413 + 'crawl_rss' => [
414 + 'id' => 'crawl_rss',
415 + 'name' => esc_html__('Scrape RSS', 'aiomatic-automatic-ai-content-writer'),
416 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
417 + 'required_plugin' => array(),
418 + 'description' => esc_html__('Scrapes content from RSS feeds', 'aiomatic-automatic-ai-content-writer'),
419 + 'type' => 'create',
420 + 'shortcodes' => array('rss_content_'),
421 + 'parameters' => array(
422 + 'url' => array(
423 + 'type' => 'url',
424 + 'title' => esc_html__('RSS Feed URL', 'aiomatic-automatic-ai-content-writer'),
425 + 'default_value' => '',
426 + 'placeholder' => esc_html__('Set the URL of the RSS feed to be scraped for data', 'aiomatic-automatic-ai-content-writer'),
427 + 'description' => esc_html__('Set the URL of the RSS feed to be scraped for data. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
428 + ),
429 + 'template' => array(
430 + 'type' => 'textarea',
431 + 'title' => esc_html__('Results Template', 'aiomatic-automatic-ai-content-writer'),
432 + 'default_value' => '[%%item_counter%%]: %%item_title%% - %%item_description%%',
433 + 'placeholder' => esc_html__('Set the template of the resulting string, which will be built after parsing the RSS feed', 'aiomatic-automatic-ai-content-writer'),
434 + 'description' => esc_html__('Set the template of the resulting string, which will be built after parsing the RSS feed. You can use the following shortcodes, which will map to the values of each RSS feed item: %%item_counter%%, %%item_title%%, %%item_content%%, %%item_description%%, %%item_url%%, %%item_author%%, %%item_categories%%, %%item_scraped_data%% - the %%item_scraped_data%% shortcode will be usable only if you enable the \'Scrape Links\' feature from below.', 'aiomatic-automatic-ai-content-writer')
435 + ),
436 + 'max_items' => array(
437 + 'type' => 'number',
438 + 'title' => esc_html__('Maximum # Of Items To Process', 'aiomatic-automatic-ai-content-writer'),
439 + 'default_value' => '10',
440 + 'placeholder' => esc_html__('Set the maximum number of items to process', 'aiomatic-automatic-ai-content-writer'),
441 + 'description' => esc_html__('Set the maximum number of items to process. This will make the plugin process up to the maximum number of feed items and include them in the final result.', 'aiomatic-automatic-ai-content-writer')
442 + ),
443 + 'scrape' => array(
444 + 'type' => 'checkbox',
445 + 'title' => esc_html__('Scrape Links', 'aiomatic-automatic-ai-content-writer'),
446 + 'default_value' => '',
447 + 'description' => esc_html__('Do you want to scrape each link and extract readable content from them? Note that this feature will add the scraped data into the %%item_scraped_data%% variable, be sure to use it in the template above!', 'aiomatic-automatic-ai-content-writer')
448 + ),
449 + 'scrape_method' => array(
450 + 'type' => 'scraper_select',
451 + 'title' => esc_html__('Scraping Method', 'aiomatic-automatic-ai-content-writer'),
452 + 'default_value' => '',
453 + 'description' => esc_html__('Select the method to be used for scraping. This will affect the %%item_scraped_data%% shortcode.', 'aiomatic-automatic-ai-content-writer')
454 + ),
455 + 'max_chars' => array(
456 + 'type' => 'number',
457 + 'title' => esc_html__('Maximum # Of Characters To Keep', 'aiomatic-automatic-ai-content-writer'),
458 + 'default_value' => '',
459 + 'placeholder' => esc_html__('Set the maximum number of characters to keep from the scraped data', 'aiomatic-automatic-ai-content-writer'),
460 + 'description' => esc_html__('Set the maximum number of characters to keep from the scraped data.', 'aiomatic-automatic-ai-content-writer')
461 + ),
462 + 'prompt' => array(
463 + 'type' => 'textarea',
464 + 'title' => esc_html__('Process Each Result With AI Prompt', 'aiomatic-automatic-ai-content-writer'),
465 + 'default_value' => '',
466 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the content writer', 'aiomatic-automatic-ai-content-writer'),
467 + 'description' => esc_html__('Set the AI prompt which will be sent to the content writer, to process each result. Additional shortcodes you can use: %%current_item%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported. If you don\'t add the %%current_item%% to the prompt, it will be automatically appended to the end of it.', 'aiomatic-automatic-ai-content-writer')
468 + ),
469 + 'assistant_id' => array(
470 + 'type' => 'assistant_select',
471 + 'title' => esc_html__('AI Assistant', 'aiomatic-automatic-ai-content-writer'),
472 + 'default_value' => '',
473 + 'description' => esc_html__('Select the AI Assistant to be used with the AI writer. If you select an assistant, a model cannot be selected any more, but instead, the model assigned to the assistant will be used.', 'aiomatic-automatic-ai-content-writer')
474 + ),
475 + 'model' => array(
476 + 'type' => 'model_select',
477 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
478 + 'default_value' => '',
479 + 'description' => esc_html__('Select the model to be used with the AI writer.', 'aiomatic-automatic-ai-content-writer')
480 + )
481 + )
482 + ],
483 + 'google_search' => [
484 + 'id' => 'google_search',
485 + 'name' => esc_html__('Google Search', 'aiomatic-automatic-ai-content-writer'),
486 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
487 + 'required_plugin' => array(),
488 + 'description' => esc_html__('Search Google and get search results data', 'aiomatic-automatic-ai-content-writer'),
489 + 'type' => 'create',
490 + 'shortcodes' => array('search_result_'),
491 + 'parameters' => array(
492 + 'keyword' => array(
493 + 'type' => 'text',
494 + 'title' => esc_html__('Keyword', 'aiomatic-automatic-ai-content-writer'),
495 + 'default_value' => '',
496 + 'placeholder' => esc_html__('Set the keyword for which SERP data is queried', 'aiomatic-automatic-ai-content-writer'),
497 + 'description' => esc_html__('Set the keyword for which SERP data is queried. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
498 + ),
499 + 'locale' => array(
500 + 'type' => 'text',
501 + 'title' => esc_html__('Search Results Location', 'aiomatic-automatic-ai-content-writer'),
502 + 'default_value' => '',
503 + 'placeholder' => esc_html__('2 letter country code', 'aiomatic-automatic-ai-content-writer'),
504 + 'description' => esc_html__('Specifying this parameter should lead to more relevant results for a specific country. This is particularly true for international customers and, even more specifically, for customers in English- speaking countries other than the United States. To restrict search results only to websites located in a specific country, specify this parameter as: countryDE - replace DE with your own 2 letter country code', 'aiomatic-automatic-ai-content-writer')
505 + ),
506 + 'template' => array(
507 + 'type' => 'textarea',
508 + 'title' => esc_html__('Results Template', 'aiomatic-automatic-ai-content-writer'),
509 + 'default_value' => '[%%item_counter%%]: %%item_title%% - %%item_snippet%%',
510 + 'placeholder' => esc_html__('Set the template of the resulting string, which will be built after parsing the search results', 'aiomatic-automatic-ai-content-writer'),
511 + 'description' => esc_html__('Set the template of the resulting string, which will be built after parsing the search results. You can use the following shortcodes, which will map to the values of each search results item: %%item_counter%%, %%item_title%%, %%item_snippet%%, %%item_url%%, %%item_scraped_data%% - the %%item_scraped_data%% shortcode will be usable only if you enable the \'Scrape Links\' feature from below.', 'aiomatic-automatic-ai-content-writer')
512 + ),
513 + 'max_items' => array(
514 + 'type' => 'number',
515 + 'title' => esc_html__('Maximum # Of Items To Process', 'aiomatic-automatic-ai-content-writer'),
516 + 'default_value' => '10',
517 + 'placeholder' => esc_html__('Set the maximum number of items to process', 'aiomatic-automatic-ai-content-writer'),
518 + 'description' => esc_html__('Set the maximum number of items to process. This will make the plugin process up to the maximum number of search results items and include them in the final result.', 'aiomatic-automatic-ai-content-writer')
519 + ),
520 + 'scrape' => array(
521 + 'type' => 'checkbox',
522 + 'title' => esc_html__('Scrape Links', 'aiomatic-automatic-ai-content-writer'),
523 + 'default_value' => '',
524 + 'description' => esc_html__('Do you want to scrape each link and extract readable content from them? Note that this feature will add the scraped data into the %%item_scraped_data%% variable, be sure to use it in the template above!', 'aiomatic-automatic-ai-content-writer')
525 + ),
526 + 'scrape_method' => array(
527 + 'type' => 'scraper_select',
528 + 'title' => esc_html__('Scraping Method', 'aiomatic-automatic-ai-content-writer'),
529 + 'default_value' => '',
530 + 'description' => esc_html__('Select the method to be used for scraping. This will affect the %%item_scraped_data%% shortcode.', 'aiomatic-automatic-ai-content-writer')
531 + ),
532 + 'max_chars' => array(
533 + 'type' => 'number',
534 + 'title' => esc_html__('Maximum # Of Characters To Keep', 'aiomatic-automatic-ai-content-writer'),
535 + 'default_value' => '',
536 + 'placeholder' => esc_html__('Set the maximum number of characters to keep from the scraped data', 'aiomatic-automatic-ai-content-writer'),
537 + 'description' => esc_html__('Set the maximum number of characters to keep from the scraped data.', 'aiomatic-automatic-ai-content-writer')
538 + ),
539 + 'prompt' => array(
540 + 'type' => 'textarea',
541 + 'title' => esc_html__('Process Each Result With AI Prompt', 'aiomatic-automatic-ai-content-writer'),
542 + 'default_value' => '',
543 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the content writer', 'aiomatic-automatic-ai-content-writer'),
544 + 'description' => esc_html__('Set the AI prompt which will be sent to the content writer, to process each result. Additional shortcodes you can use: %%current_item%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported. If you don\'t add the %%current_item%% to the prompt, it will be automatically appended to the end of it.', 'aiomatic-automatic-ai-content-writer')
545 + ),
546 + 'assistant_id' => array(
547 + 'type' => 'assistant_select',
548 + 'title' => esc_html__('AI Assistant', 'aiomatic-automatic-ai-content-writer'),
549 + 'default_value' => '',
550 + 'description' => esc_html__('Select the AI Assistant to be used with the AI writer. If you select an assistant, a model cannot be selected any more, but instead, the model assigned to the assistant will be used.', 'aiomatic-automatic-ai-content-writer')
551 + ),
552 + 'model' => array(
553 + 'type' => 'model_select',
554 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
555 + 'default_value' => '',
556 + 'description' => esc_html__('Select the model to be used with the AI writer.', 'aiomatic-automatic-ai-content-writer')
557 + )
558 + )
559 + ],
560 + 'youtube_caption' => [
561 + 'id' => 'youtube_caption',
562 + 'name' => esc_html__('YouTube Video Caption', 'aiomatic-automatic-ai-content-writer'),
563 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
564 + 'required_plugin' => array(),
565 + 'description' => esc_html__('Scrapes the YouTube video captions and uses them for AI content creation', 'aiomatic-automatic-ai-content-writer'),
566 + 'type' => 'create',
567 + 'shortcodes' => array('video_caption_', 'video_title_', 'video_description_', 'video_thumb_'),
568 + 'parameters' => array(
569 + 'url' => array(
570 + 'type' => 'url',
571 + 'title' => esc_html__('YouTube Video URL', 'aiomatic-automatic-ai-content-writer'),
572 + 'default_value' => '',
573 + 'placeholder' => esc_html__('Set the URL of the YouTube video from which captions will be imported', 'aiomatic-automatic-ai-content-writer'),
574 + 'description' => esc_html__('Set the URL of the YouTube video from which captions will be imported.', 'aiomatic-automatic-ai-content-writer')
575 + ),
576 + 'max_caption' => array(
577 + 'type' => 'number',
578 + 'title' => esc_html__('Maximum Result Length', 'aiomatic-automatic-ai-content-writer'),
579 + 'default_value' => '',
580 + 'placeholder' => esc_html__('Set the maximum length in characters of the resulting string', 'aiomatic-automatic-ai-content-writer'),
581 + 'description' => esc_html__('Set the maximum length in characters of the resulting string. If the captions are longer than this value, they will shortened.', 'aiomatic-automatic-ai-content-writer')
582 + )
583 + )
584 + ],
585 + 'amazon_product' => [
586 + 'id' => 'amazon_product',
587 + 'name' => esc_html__('Amazon Product Details', 'aiomatic-automatic-ai-content-writer'),
588 + 'category' => esc_html__(' - Amazon Blocks', 'aiomatic-automatic-ai-content-writer'),
589 + 'required_plugin' => array(),
590 + 'description' => esc_html__('Scrapes product details from Amazon, by ASIN', 'aiomatic-automatic-ai-content-writer'),
591 + 'type' => 'create',
592 + 'shortcodes' => $amazon_shortcodes,
593 + 'parameters' => array(
594 + 'asin' => array(
595 + 'type' => 'text',
596 + 'title' => esc_html__('Single Product ASIN or Keyword', 'aiomatic-automatic-ai-content-writer'),
597 + 'default_value' => '',
598 + 'placeholder' => esc_html__('Example: B07RZ74VLR', 'aiomatic-automatic-ai-content-writer'),
599 + 'description' => esc_html__('Please provide a single ASIN of an Amazon product (ex: B07RZ74VLR).', 'aiomatic-automatic-ai-content-writer')
600 + ),
601 + 'aff_id' => array(
602 + 'type' => 'text',
603 + 'title' => esc_html__('Amazon Associate ID', 'aiomatic-automatic-ai-content-writer'),
604 + 'default_value' => '',
605 + 'placeholder' => esc_html__('Insert your Amazon Associate ID', 'aiomatic-automatic-ai-content-writer'),
606 + 'description' => esc_html__('Insert your Amazon Associate ID (Optional).', 'aiomatic-automatic-ai-content-writer')
607 + ),
608 + 'target_country' => array(
609 + 'type' => 'amazon_country_select',
610 + 'title' => esc_html__('Amazon Target Country', 'aiomatic-automatic-ai-content-writer'),
611 + 'default_value' => '',
612 + 'description' => esc_html__('Select the country where you have registred your affiliate account.', 'aiomatic-automatic-ai-content-writer')
613 + )
614 + )
615 + ],
616 + 'amazon_listing' => [
617 + 'id' => 'amazon_listing',
618 + 'name' => esc_html__('Amazon Product Listing', 'aiomatic-automatic-ai-content-writer'),
619 + 'category' => esc_html__(' - Amazon Blocks', 'aiomatic-automatic-ai-content-writer'),
620 + 'required_plugin' => array(),
621 + 'description' => esc_html__('Scrapes product listing details from Amazon, by ASIN or keyword', 'aiomatic-automatic-ai-content-writer'),
622 + 'type' => 'create',
623 + 'shortcodes' => array('product_listing_'),
624 + 'parameters' => array(
625 + 'asin' => array(
626 + 'type' => 'text',
627 + 'title' => esc_html__('Product Search Keywords / Product ASIN List', 'aiomatic-automatic-ai-content-writer'),
628 + 'default_value' => '',
629 + 'placeholder' => esc_html__('Example: dog food', 'aiomatic-automatic-ai-content-writer'),
630 + 'description' => esc_html__('Please provide the a search keyword for Amazon products to be included in the created content. Alternatively, you can provide a comma separated list of product ASINs (ex: B07RZ74VLR,B07RX6FBFR).', 'aiomatic-automatic-ai-content-writer')
631 + ),
632 + 'aff_id' => array(
633 + 'type' => 'text',
634 + 'title' => esc_html__('Amazon Associate ID', 'aiomatic-automatic-ai-content-writer'),
635 + 'default_value' => '',
636 + 'placeholder' => esc_html__('Insert your Amazon Associate ID', 'aiomatic-automatic-ai-content-writer'),
637 + 'description' => esc_html__('Insert your Amazon Associate ID (Optional).', 'aiomatic-automatic-ai-content-writer')
638 + ),
639 + 'target_country' => array(
640 + 'type' => 'amazon_country_select',
641 + 'title' => esc_html__('Amazon Target Country', 'aiomatic-automatic-ai-content-writer'),
642 + 'default_value' => '',
643 + 'description' => esc_html__('Select the country where you have registred your affiliate account.', 'aiomatic-automatic-ai-content-writer')
644 + ),
645 + 'sort_results' => array(
646 + 'type' => 'amazon_sort_select',
647 + 'title' => esc_html__('Sort Amazon Results By', 'aiomatic-automatic-ai-content-writer'),
648 + 'default_value' => '',
649 + 'description' => esc_html__('Select the type of sorting of the returned results.', 'aiomatic-automatic-ai-content-writer')
650 + ),
651 + 'max_product_count' => array(
652 + 'type' => 'text',
653 + 'title' => esc_html__('Maximum Number Of Products To Query', 'aiomatic-automatic-ai-content-writer'),
654 + 'default_value' => '',
655 + 'placeholder' => esc_html__('Set the maximum number of products to add in the product listing', 'aiomatic-automatic-ai-content-writer'),
656 + 'description' => esc_html__('Set the maximum number of products to add in the product listing. You can also set a variable number of products, case in which a random number will be selected from the range you specify. Example 5-7', 'aiomatic-automatic-ai-content-writer')
657 + ),
658 + 'listing_template' => array(
659 + 'type' => 'textarea',
660 + 'title' => esc_html__('Product Listing Template', 'aiomatic-automatic-ai-content-writer'),
661 + 'default_value' => '%%product_counter%%. %%product_title%% - Desciption: %%product_description%% - Link: %%product_url%% - Price: %%product_price%%',
662 + 'placeholder' => esc_html__('Set what information do you want to add into each product listing entry', 'aiomatic-automatic-ai-content-writer'),
663 + 'description' => esc_html__('Set what information do you want to add into each product listing entry. You can use the following shortcodes to get data for specific products: %%product_counter%%, %%product_title%%, %%product_description%%, %%product_url%%, %%product_price%%, %%product_list_price%%, %%product_image%%, %%product_cart_url%%, %%product_images_urls%%, %%product_images%%, %%product_reviews%%. If you have access to the Amazon API, you can set it up in the plugin and get access to the following advanced shortcodes also: %%product_score%%, %%product_edition%%, %%product_language%%, %%product_pages_count%%, %%product_publication_date%%, %%product_contributors%%, %%product_manufacturer%%, %%product_binding%%, %%product_product_group%%, %%product_rating%%, %%product_ean%%, %%product_part_no%%, %%product_model%%, %%product_warranty%%, %%product_color%%, %%product_is_adult%%, %%product_dimensions%%, %%product_date%%, %%product_size%%, %%product_unit_count%%', 'aiomatic-automatic-ai-content-writer')
664 + )
665 + )
666 + ],
667 + 'text_translate' => [
668 + 'id' => 'text_translate',
669 + 'name' => esc_html__('Text Translator', 'aiomatic-automatic-ai-content-writer'),
670 + 'category' => esc_html__(' - Content Processing Blocks', 'aiomatic-automatic-ai-content-writer'),
671 + 'required_plugin' => array(),
672 + 'description' => esc_html__('Translates text using Google Translate/Microsoft Translator/DeepL. To use Microsoft Translator or DeepL, add your API key for these services in the plugin\'s \'Settings\' menu.', 'aiomatic-automatic-ai-content-writer'),
673 + 'type' => 'create',
674 + 'shortcodes' => array('translated_'),
675 + 'parameters' => array(
676 + 'input_text' => array(
677 + 'type' => 'textarea',
678 + 'title' => esc_html__('Text To Be Translated', 'aiomatic-automatic-ai-content-writer'),
679 + 'default_value' => '',
680 + 'placeholder' => esc_html__('Input your text', 'aiomatic-automatic-ai-content-writer'),
681 + 'description' => esc_html__('Provide the text which needs to be translated.', 'aiomatic-automatic-ai-content-writer')
682 + ),
683 + 'translate' => array(
684 + 'type' => 'language_selector',
685 + 'title' => esc_html__('Translate Content To', 'aiomatic-automatic-ai-content-writer'),
686 + 'default_value' => '',
687 + 'description' => esc_html__('Do you want to automatically translate generated content using Google Translate/Microsoft Translator/DeepL to any language?', 'aiomatic-automatic-ai-content-writer')
688 + ),
689 + 'translate_source' => array(
690 + 'type' => 'language_selector',
691 + 'title' => esc_html__('Translation Source Language', 'aiomatic-automatic-ai-content-writer'),
692 + 'default_value' => '',
693 + 'description' => esc_html__('Select the source language of the translation.', 'aiomatic-automatic-ai-content-writer')
694 + ),
695 + 'second_translate' => array(
696 + 'type' => 'language_selector',
697 + 'title' => esc_html__('Do Also A Second Translation To', 'aiomatic-automatic-ai-content-writer'),
698 + 'default_value' => '',
699 + 'description' => esc_html__('Do you want to automatically translate generated content a second time, to this final language? In some cases, this can replace word spinning of scraped content. Please note that this can increase the amount of requests made to the translation APIs. This field has no effect if you don\'t set also a first translation language, in the settings field from above.', 'aiomatic-automatic-ai-content-writer')
700 + )
701 + )
702 + ],
703 + 'text_spinner' => [
704 + 'id' => 'text_spinner',
705 + 'name' => esc_html__('Text Spinner', 'aiomatic-automatic-ai-content-writer'),
706 + 'category' => esc_html__(' - Content Processing Blocks', 'aiomatic-automatic-ai-content-writer'),
707 + 'required_plugin' => array(),
708 + 'description' => esc_html__('Spins the text and rewrites it, making it unique. For this feature to work, you need to select a text spinner service from the plugin\'s \'Settings\' menu -> \'Bulk Posts\' tab -> \'Spin Text Using Word Synonyms\' settings field.', 'aiomatic-automatic-ai-content-writer'),
709 + 'type' => 'create',
710 + 'shortcodes' => array('spun_'),
711 + 'parameters' => array(
712 + 'input_text' => array(
713 + 'type' => 'textarea',
714 + 'title' => esc_html__('Text To Be Spun', 'aiomatic-automatic-ai-content-writer'),
715 + 'default_value' => '',
716 + 'placeholder' => esc_html__('Input your text', 'aiomatic-automatic-ai-content-writer'),
717 + 'description' => esc_html__('Provide the text which needs to be spun.', 'aiomatic-automatic-ai-content-writer')
718 + )
719 + )
720 + ],
721 + 'royalty_image' => [
722 + 'id' => 'royalty_image',
723 + 'name' => esc_html__('Royalty Free Image Search', 'aiomatic-automatic-ai-content-writer'),
724 + 'category' => esc_html__(' - Content Media Blocks', 'aiomatic-automatic-ai-content-writer'),
725 + 'required_plugin' => array(),
726 + 'description' => esc_html__('Adds a related royalty free images to the content. For this feature to work, you need to select one or multipel royalty free images services from the plugin\'s \'Settings\' menu -> \'Royalty Free Images\' tab.', 'aiomatic-automatic-ai-content-writer'),
727 + 'type' => 'create',
728 + 'shortcodes' => array('free_image_'),
729 + 'parameters' => array(
730 + 'input_text' => array(
731 + 'type' => 'textarea',
732 + 'title' => esc_html__('Image Keyword Search', 'aiomatic-automatic-ai-content-writer'),
733 + 'default_value' => '',
734 + 'placeholder' => esc_html__('Set the keyword based on which royalty free images will be searched', 'aiomatic-automatic-ai-content-writer'),
735 + 'description' => esc_html__('Set the keyword based on which royalty free images will be searched. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
736 + )
737 + )
738 + ],
739 + 'youtube_video' => [
740 + 'id' => 'youtube_video',
741 + 'name' => esc_html__('YouTube Video Search', 'aiomatic-automatic-ai-content-writer'),
742 + 'category' => esc_html__(' - Content Media Blocks', 'aiomatic-automatic-ai-content-writer'),
743 + 'required_plugin' => array(),
744 + 'description' => esc_html__('Adds a related YouTube video to the content.', 'aiomatic-automatic-ai-content-writer'),
745 + 'type' => 'create',
746 + 'shortcodes' => array('video_url_', 'video_embed_'),
747 + 'parameters' => array(
748 + 'input_text' => array(
749 + 'type' => 'textarea',
750 + 'title' => esc_html__('Video Keyword Search', 'aiomatic-automatic-ai-content-writer'),
751 + 'default_value' => '',
752 + 'placeholder' => esc_html__('Set the keyword based on which YouTube videos will be searched', 'aiomatic-automatic-ai-content-writer'),
753 + 'description' => esc_html__('Set the keyword based on which YouTube videos will be searched. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
754 + )
755 + )
756 + ],
757 + 'embeddings' => [
758 + 'id' => 'embeddings',
759 + 'name' => esc_html__('Embeddings Result', 'aiomatic-automatic-ai-content-writer'),
760 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
761 + 'required_plugin' => array(),
762 + 'description' => esc_html__('Outputs an embeddings result from the embeddings you have created in the plugin, based on the text input sent to this OmniBlock. Note that for this feature to work, you need to enable embeddings in the plugin and create embeddings texts, which matches the result you are expecting.', 'aiomatic-automatic-ai-content-writer'),
763 + 'type' => 'create',
764 + 'shortcodes' => array('embeddings_'),
765 + 'parameters' => array(
766 + 'input_text' => array(
767 + 'type' => 'textarea',
768 + 'title' => esc_html__('Embeddings Input', 'aiomatic-automatic-ai-content-writer'),
769 + 'default_value' => '',
770 + 'placeholder' => esc_html__('Input your text', 'aiomatic-automatic-ai-content-writer'),
771 + 'description' => esc_html__('Provide the text which will be used to generate the embeddings result.', 'aiomatic-automatic-ai-content-writer')
772 + ),
773 + 'embeddings_namespace' => array(
774 + 'type' => 'textarea',
775 + 'title' => esc_html__('Embeddings Namespace (Optional)', 'aiomatic-automatic-ai-content-writer'),
776 + 'default_value' => '',
777 + 'placeholder' => esc_html__('Input your embeddings namespace', 'aiomatic-automatic-ai-content-writer'),
778 + 'description' => esc_html__('If you want to use a custom namespace for embeddings, define it here.', 'aiomatic-automatic-ai-content-writer')
779 + )
780 + )
781 + ],
782 + 'internet_access' => [
783 + 'id' => 'internet_access',
784 + 'name' => esc_html__('Internet Search Result', 'aiomatic-automatic-ai-content-writer'),
785 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
786 + 'required_plugin' => array(),
787 + 'description' => esc_html__('Outputs an internet search result, based on the text input sent to this OmniBlock. Note that for this feature to work, you need to enable internet access providers in the plugin\'s settings.', 'aiomatic-automatic-ai-content-writer'),
788 + 'type' => 'create',
789 + 'shortcodes' => array('internet_access_'),
790 + 'parameters' => array(
791 + 'input_text' => array(
792 + 'type' => 'textarea',
793 + 'title' => esc_html__('Search Keyword Input', 'aiomatic-automatic-ai-content-writer'),
794 + 'default_value' => '',
795 + 'placeholder' => esc_html__('Input your text', 'aiomatic-automatic-ai-content-writer'),
796 + 'description' => esc_html__('Provide the text which will be used to generate the internet search result.', 'aiomatic-automatic-ai-content-writer')
797 + )
798 + )
799 + ],
800 + 'load_file' => [
801 + 'id' => 'load_file',
802 + 'name' => esc_html__('Load File Content', 'aiomatic-automatic-ai-content-writer'),
803 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
804 + 'required_plugin' => array(),
805 + 'description' => esc_html__('Gathers the content of a single file.', 'aiomatic-automatic-ai-content-writer'),
806 + 'type' => 'create',
807 + 'shortcodes' => array('file_'),
808 + 'parameters' => array(
809 + 'input_text' => array(
810 + 'type' => 'file_selector',
811 + 'title' => esc_html__('File To Load', 'aiomatic-automatic-ai-content-writer'),
812 + 'default_value' => '',
813 + 'description' => esc_html__('Select the file to load into a shortcode. You can load plain text files or xlsx files. If you load an xlsx file, you can also use the following shortcodes to access xlsx data: %%xlsx_BLOCKID_XLSXROW_XLSXCOLUMN%%, %%xlsx_BLOCKID_column_XLSXCOLUMN%%, %%xlsx_BLOCKID_row_XLSXROW%%, %%xlsx_BLOCKID_row_random%%, %%xlsx_BLOCKID_row_random_check%%', 'aiomatic-automatic-ai-content-writer')
814 + )
815 + )
816 + ],
817 + 'nlp_entities' => [
818 + 'id' => 'nlp_entities',
819 + 'name' => esc_html__('Related NLP Entities - TextRazor', 'aiomatic-automatic-ai-content-writer'),
820 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
821 + 'required_plugin' => array(),
822 + 'description' => esc_html__('Using TextRazor API, gets related entities to keywords.', 'aiomatic-automatic-ai-content-writer'),
823 + 'type' => 'create',
824 + 'shortcodes' => array('entities_', 'entities_details_json_'),
825 + 'parameters' => array(
826 + 'input_text' => array(
827 + 'type' => 'text',
828 + 'title' => esc_html__('Entities Search Keywords', 'aiomatic-automatic-ai-content-writer'),
829 + 'default_value' => '',
830 + 'placeholder' => esc_html__('Example: dog food', 'aiomatic-automatic-ai-content-writer'),
831 + 'description' => esc_html__('Please provide the a search keyword for the related entities search.', 'aiomatic-automatic-ai-content-writer')
832 + )
833 + )
834 + ],
835 + 'nlp_entities_neuron' => [
836 + 'id' => 'nlp_entities_neuron',
837 + 'name' => esc_html__('Related NLP Entities - NeuronWriter', 'aiomatic-automatic-ai-content-writer'),
838 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
839 + 'required_plugin' => array(),
840 + 'description' => esc_html__('Using NeuronWriter API, gets related entities to keywords.', 'aiomatic-automatic-ai-content-writer'),
841 + 'type' => 'create',
842 + 'shortcodes' => array('entities_title_', 'entities_description_', 'entities_h1_', 'entities_h2_', 'entities_content_basic_', 'entities_content_basic_with_ranges_', 'entities_content_extended_', 'entities_content_extended_with_ranges_', 'entities_list_'),
843 + 'parameters' => array(
844 + 'input_text' => array(
845 + 'type' => 'text',
846 + 'title' => esc_html__('Entities Search Keywords', 'aiomatic-automatic-ai-content-writer'),
847 + 'default_value' => '',
848 + 'placeholder' => esc_html__('Example: dog food', 'aiomatic-automatic-ai-content-writer'),
849 + 'description' => esc_html__('Please provide the a search keyword for the related entities search.', 'aiomatic-automatic-ai-content-writer')
850 + ),
851 + 'engine' => array(
852 + 'type' => 'select',
853 + 'values' => array("google.al" => "ALBANIA | google.AL", "google.ad" => "ANDORRA | google.AD", "google.at" => "AUSTRIA | google.AT", "google.by" => "BELARUS | google.BY", "google.be" => "BELGIUM | google.BE", "google.ba" => "BOSNIA AND HERZEGOVINA | google.BA", "google.bg" => "BULGARIA | google.BG", "google.hr" => "CROATIA | google.HR", "google.cz" => "CZECH REPUBLIC | google.CZ", "google.dk" => "DENMARK | google.DK", "google.ee" => "ESTONIA | google.EE", "google.fi" => "FINLAND | google.FI", "google.fr" => "FRANCE | google.FR", "google.de" => "GERMANY | google.DE", "google.com.gi" => "GIBRALTAR | google.com.GI", "google.gr" => "GREECE | google.GR", "google.gg" => "GUERNSEY | google.GG", "google.hu" => "HUNGARY | google.HU", "google.is" => "ICELAND | google.IS", "google.ie" => "IRELAND | google.IE", "google.im" => "ISLE OF MAN | google.IM", "google.it" => "ITALY | google.IT", "google.je" => "JERSEY | google.JE", "google.lv" => "LATVIA | google.LV", "google.li" => "LIECHTENSTEIN | google.LI", "google.lt" => "LITHUANIA | google.LT", "google.lu" => "LUXEMBOURG | google.LU", "google.mk" => "MACEDONIA | google.MK", "google.com.mt" => "MALTA | google.com.MT", "google.md" => "MOLDOVA | google.MD", "google.me" => "MONTENEGRO | google.ME", "google.nl" => "NETHERLANDS | google.NL", "google.no" => "NORWAY | google.NO", "google.pl" => "POLAND | google.PL", "google.pt" => "PORTUGAL | google.PT", "google.ro" => "ROMANIA | google.RO", "google.ru" => "RUSSIA | google.RU", "google.sm" => "SAN MARINO | google.SM", "google.rs" => "SERBIA | google.RS", "google.sk" => "SLOVAKIA | google.SK", "google.si" => "SLOVENIA | google.SI", "google.es" => "SPAIN | google.ES", "google.se" => "SWEDEN | google.SE", "google.ch" => "SWITZERLAND | google.CH", "google.com.tr" => "TURKEY | google.com.TR", "google.com.ua" => "UKRAINE | google.com.UA", "google.co.uk" => "UNITED KINGDOM | google.co.UK", "google.com.ag" => "ANTIGUA AND BARBUDA | google.com.AG", "google.bs" => "BAHAMAS | google.BS", "google.com.bz" => "BELIZE | google.com.BZ", "google.vg" => "BRITISH VIRGIN ISLANDS | google.VG", "google.ca" => "CANADA | google.CA", "google.co.cr" => "COSTA RICA | google.co.CR", "google.com.cu" => "CUBA | google.com.CU", "google.dm" => "DOMINICA | google.DM", "google.com.do" => "DOMINICAN REPUBLIC | google.com.DO", "google.com.sv" => "EL SALVADOR | google.com.SV", "google.gl" => "GREENLAND | google.GL", "google.com.gt" => "GUATEMALA | google.com.GT", "google.ht" => "HAITI | google.HT", "google.hn" => "HONDURAS | google.HN", "google.com.jm" => "JAMAICA | google.com.JM", "google.com.mx" => "MEXICO | google.com.MX", "google.com.ni" => "NICARAGUA | google.com.NI", "google.com.pa" => "PANAMA | google.com.PA", "google.com.pr" => "PUERTO RICO | google.com.PR", "google.com.vc" => "SAINT VINCENT AND THE GRENADINES | google.com.VC", "google.tt" => "TRINIDAD AND TOBAGO | google.TT", "google.com" => "UNITED STATES (USA) | google.COM", "google.co.vi" => "VIRGIN ISLANDS | google.co.VI", "google.com.ar" => "ARGENTINA | google.com.AR", "google.com.bo" => "BOLIVIA | google.com.BO", "google.com.br" => "BRAZIL | google.com.BR", "google.cl" => "CHILE | google.CL", "google.com.co" => "COLOMBIA | google.com.CO", "google.com.ec" => "ECUADOR | google.com.EC", "google.gy" => "GUYANA | google.GY", "google.com.py" => "PARAGUAY | google.com.PY", "google.com.pe" => "PERU | google.com.PE", "google.sr" => "SURINAME | google.SR", "google.com.uy" => "URUGUAY | google.com.UY", "google.co.ve" => "VENEZUELA | google.co.VE", "google.com.af" => "AFGHANISTAN | google.com.AF", "google.am" => "ARMENIA | google.AM", "google.az" => "AZERBAIJAN | google.AZ", "google.com.bh" => "BAHRAIN | google.com.BH", "google.com.bd" => "BANGLADESH | google.com.BD", "google.bt" => "BHUTAN | google.BT", "google.com.bn" => "BRUNEI | google.com.BN", "google.com.kh" => "CAMBODIA | google.com.KH", "google.cn" => "CHINA | google.CN", "google.com.cy" => "CYPRUS | google.com.CY", "google.ge" => "GEORGIA | google.GE", "google.com.hk" => "HONG KONG | google.com.HK", "google.co.in" => "INDIA | google.co.IN", "google.co.id" => "INDONESIA | google.co.ID", "google.iq" => "IRAQ | google.IQ", "google.co.il" => "ISRAEL | google.co.IL", "google.co.jp" => "JAPAN | google.co.JP", "google.jo" => "JORDAN | google.JO", "google.kz" => "KAZAKHSTAN | google.KZ", "google.com.kw" => "KUWAIT | google.com.KW", "google.kg" => "KYRGYZSTAN | google.KG", "google.la" => "LAOS | google.LA", "google.com.lb" => "LEBANON | google.com.LB", "google.com.my" => "MALAYSIA | google.com.MY", "google.mv" => "MALDIVES | google.MV", "google.mn" => "MONGOLIA | google.MN", "google.com.mm" => "MYANMAR | google.com.MM", "google.com.np" => "NEPAL | google.com.NP", "google.com.om" => "OMAN | google.com.OM", "google.com.pk" => "PAKISTAN | google.com.PK", "google.ps" => "PALESTINE | google.PS", "google.com.ph" => "PHILIPPINES | google.com.PH", "google.com.qa" => "QATAR | google.com.QA", "google.com.sa" => "SAUDI ARABIA | google.com.SA", "google.com.sg" => "SINGAPORE | google.com.SG", "google.co.kr" => "SOUTH KOREA | google.co.KR", "google.lk" => "SRI LANKA | google.LK", "google.com.tw" => "TAIWAN | google.com.TW", "google.com.tj" => "TAJIKISTAN | google.com.TJ", "google.co.th" => "THAILAND | google.co.TH", "google.tl" => "TIMOR-LESTE | google.TL", "google.tm" => "TURKMENISTAN | google.TM", "google.ae" => "UNITED ARAB EMIRATES | google.AE", "google.co.uz" => "UZBEKISTAN | google.co.UZ", "google.com.vn" => "VIETNAM | google.com.VN", "google.dz" => "ALGERIA | google.DZ", "google.co.ao" => "ANGOLA | google.co.AO", "google.bj" => "BENIN | google.BJ", "google.co.bw" => "BOTSWANA | google.co.BW", "google.bf" => "BURKINA FASO | google.BF", "google.bi" => "BURUNDI | google.BI", "google.cm" => "CAMEROON | google.CM", "google.cv" => "CAPE VERDE | google.CV", "google.cf" => "CENTRAL AFRICAN REPUBLIC | google.CF", "google.td" => "CHAD | google.TD", "google.cd" => "DEMOCRATIC REPUBLIC OF THE CONGO | google.CD", "google.dj" => "DJIBOUTI | google.DJ", "google.com.eg" => "EGYPT | google.com.EG", "google.com.et" => "ETHIOPIA | google.com.ET", "google.ga" => "GABON | google.GA", "google.gm" => "GAMBIA | google.GM", "google.com.gh" => "GHANA | google.com.GH", "google.ci" => "IVORY COAST | google.CI", "google.co.ke" => "KENYA | google.co.KE", "google.co.ls" => "LESOTHO | google.co.LS", "google.com.ly" => "LIBYA | google.com.LY", "google.mg" => "MADAGASCAR | google.MG", "google.mw" => "MALAWI | google.MW", "google.ml" => "MALI | google.ML", "google.mu" => "MAURITIUS | google.MU", "google.co.ma" => "MOROCCO | google.co.MA", "google.co.mz" => "MOZAMBIQUE | google.co.MZ", "google.com.na" => "NAMIBIA | google.com.NA", "google.ne" => "NIGER | google.NE", "google.com.ng" => "NIGERIA | google.com.NG", "google.cg" => "REPUBLIC OF THE CONGO | google.CG", "google.rw" => "RWANDA | google.RW", "google.sh" => "SAINT HELENA | google.SH", "google.st" => "SAO TOM?? AND PR??NCIPE | google.ST", "google.sn" => "SENEGAL | google.SN", "google.sc" => "SEYCHELLES | google.SC", "google.com.sl" => "SIERRA LEONE | google.com.SL", "google.so" => "SOMALIA | google.SO", "google.co.za" => "SOUTH AFRICA | google.co.ZA", "google.co.tz" => "TANZANIA | google.co.TZ", "google.tg" => "TOGO | google.TG", "google.tn" => "TUNISIA | google.TN", "google.co.ug" => "UGANDA | google.co.UG", "google.co.zm" => "ZAMBIA | google.co.ZM", "google.co.zw" => "ZIMBABWE | google.co.ZW", "google.as" => "AMERICAN SAMOA | google.AS", "google.com.ai" => "ANGUILLA | google.com.AI", "google.com.au" => "AUSTRALIA | google.com.AU", "google.co.ck" => "COOK ISLANDS | google.co.CK", "google.com.fj" => "FIJI | google.com.FJ", "google.ki" => "KIRIBATI | google.KI", "google.fm" => "MICRONESIA | google.FM", "google.ms" => "MONTSERRAT | google.MS", "google.nr" => "NAURU | google.NR", "google.co.nz" => "NEW ZEALAND | google.co.NZ", "google.nu" => "NIUE | google.NU", "google.com.pg" => "PAPUA NEW GUINEA | google.com.PG", "google.pn" => "PITCAIRN | google.PN", "google.com.sb" => "SOLOMON ISLANDS | google.com.SB", "google.to" => "TONGA | google.TO", "google.vu" => "VANUATU | google.VU", "google.ws" => "WESTERN SAMOA | google.WS"),
854 + 'title' => esc_html__('Search Engine', 'aiomatic-automatic-ai-content-writer'),
855 + 'default_value' => 'google.co.uk',
856 + 'description' => esc_html__('Set the search engine you want to use for results querying', 'aiomatic-automatic-ai-content-writer')
857 + ),
858 + 'language' => array(
859 + 'type' => 'select',
860 + 'values' => array("Abkhazian" => "Abkhazian", "Afar" => "Afar", "Afrikaans" => "Afrikaans", "Akan" => "Akan", "Albanian" => "Albanian", "Amharic" => "Amharic", "Arabic" => "Arabic", "Aragonese" => "Aragonese", "Armenian" => "Armenian", "Assamese" => "Assamese", "Avaric" => "Avaric", "Aymara" => "Aymara", "Azerbaijani" => "Azerbaijani", "Bambara" => "Bambara", "Bashkir" => "Bashkir", "Basque" => "Basque", "Belarusian" => "Belarusian", "Bengali" => "Bengali", "Bihari" => "Bihari", "Bislama" => "Bislama", "Bosnian" => "Bosnian", "Breton" => "Breton", "Bulgarian" => "Bulgarian", "Burmese" => "Burmese", "Catalan" => "Catalan", "Chamorro" => "Chamorro", "Chechen" => "Chechen", "Chinese" => "Chinese", "Chuvash" => "Chuvash", "Corsican" => "Corsican", "Cree" => "Cree", "Croatian" => "Croatian", "Czech" => "Czech", "Danish" => "Danish", "Dhivehi" => "Dhivehi", "Dutch" => "Dutch", "Dzongkha" => "Dzongkha", "English" => "English", "Esperanto" => "Esperanto", "Estonian" => "Estonian", "Ewe" => "Ewe", "Faroese" => "Faroese", "Fijian" => "Fijian", "Finnish" => "Finnish", "French" => "French", "Fulah" => "Fulah", "Galician" => "Galician", "Ganda" => "Ganda", "Georgian" => "Georgian", "German" => "German", "Greek" => "Greek", "Guarani" => "Guarani", "Gujarati" => "Gujarati", "Haitian" => "Haitian", "Hausa" => "Hausa", "Hebrew" => "Hebrew", "Herero" => "Herero", "Hindi" => "Hindi", "Hiri Motu" => "Hiri Motu", "Hungarian" => "Hungarian", "Icelandic" => "Icelandic", "Igbo" => "Igbo", "Indonesian" => "Indonesian", "Inuktitut" => "Inuktitut", "Inupiaq" => "Inupiaq", "Irish" => "Irish", "Italian" => "Italian", "Japanese" => "Japanese", "Javanese" => "Javanese", "Kalaallisut" => "Kalaallisut", "Kannada" => "Kannada", "Kanuri" => "Kanuri", "Kashmiri" => "Kashmiri", "Kazakh" => "Kazakh", "Khmer" => "Khmer", "Kikuyu" => "Kikuyu", "Kinyarwanda" => "Kinyarwanda", "Kirghiz" => "Kirghiz", "Komi" => "Komi", "Kongo" => "Kongo", "Korean" => "Korean", "Kuanyama" => "Kuanyama", "Kurdish" => "Kurdish", "Lao" => "Lao", "Latvian" => "Latvian", "Limburgan" => "Limburgan", "Lingala" => "Lingala", "Lithuanian" => "Lithuanian", "Luba-Katanga" => "Luba-Katanga", "Luxembourgish" => "Luxembourgish", "Macedonian" => "Macedonian", "Malagasy" => "Malagasy", "Malay" => "Malay", "Malayalam" => "Malayalam", "Maltese" => "Maltese", "Maori" => "Maori", "Marathi" => "Marathi", "Marshallese" => "Marshallese", "Moldavian" => "Moldavian", "Mongolian" => "Mongolian", "Nauru" => "Nauru", "Navajo" => "Navajo", "Ndonga" => "Ndonga", "Nepali" => "Nepali", "North Ndebele" => "North Ndebele", "Northern Sami" => "Northern Sami", "Norwegian" => "Norwegian", "Nyanja" => "Nyanja", "Occitan" => "Occitan", "Ojibwa" => "Ojibwa", "Oriya" => "Oriya", "Oromo" => "Oromo", "Ossetian" => "Ossetian", "Panjabi" => "Panjabi", "Persian" => "Persian", "Polish" => "Polish", "Portuguese (Brazil)" => "Portuguese (Brazil)", "Portuguese" => "Portuguese", "Pushto" => "Pushto", "Quechua" => "Quechua", "Romanian" => "Romanian", "Romansh" => "Romansh", "Rundi" => "Rundi", "Russian" => "Russian", "Samoan" => "Samoan", "Sango" => "Sango", "Sanskrit" => "Sanskrit", "Sardinian" => "Sardinian", "Gaelic" => "Gaelic", "Serbian" => "Serbian", "Shona" => "Shona", "Sichuan Yi" => "Sichuan Yi", "Sindhi" => "Sindhi", "Sinhala" => "Sinhala", "Slovak" => "Slovak", "Slovenian" => "Slovenian", "Somali" => "Somali", "South Ndebele" => "South Ndebele", "Southern Sotho" => "Southern Sotho", "Spanish" => "Spanish", "Sundanese" => "Sundanese", "Swahili" => "Swahili", "Swati" => "Swati", "Swedish" => "Swedish", "Tagalog" => "Tagalog", "Tahitian" => "Tahitian", "Tajik" => "Tajik", "Tamil" => "Tamil", "Tatar" => "Tatar", "Telugu" => "Telugu", "Thai" => "Thai", "Tibetan" => "Tibetan", "Tigrinya" => "Tigrinya", "Tonga" => "Tonga", "Tsonga" => "Tsonga", "Tswana" => "Tswana", "Turkish" => "Turkish", "Turkmen" => "Turkmen", "Twi" => "Twi", "Uighur" => "Uighur", "Ukrainian" => "Ukrainian", "Urdu" => "Urdu", "Uzbek" => "Uzbek", "Venda" => "Venda", "Vietnamese" => "Vietnamese", "Walloon" => "Walloon", "Welsh" => "Welsh", "Western Frisian" => "Western Frisian", "Wolof" => "Wolof", "Xhosa" => "Xhosa", "Yiddish" => "Yiddish", "Yoruba" => "Yoruba", "Zhuang" => "Zhuang", "Zulu" => "Zulu"),
861 + 'title' => esc_html__('Search Language', 'aiomatic-automatic-ai-content-writer'),
862 + 'default_value' => 'English',
863 + 'description' => esc_html__('Set the search language you want to use for results querying', 'aiomatic-automatic-ai-content-writer')
864 + )
865 + )
866 + ],
867 + 'tts_openai' => [
868 + 'id' => 'tts_openai',
869 + 'name' => esc_html__('Text-To-Speech - OpenAI', 'aiomatic-automatic-ai-content-writer'),
870 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
871 + 'required_plugin' => array(),
872 + 'description' => esc_html__('Using OpenAI API, transforms text to speech (audio).', 'aiomatic-automatic-ai-content-writer'),
873 + 'type' => 'create',
874 + 'shortcodes' => array('audio_url_'),
875 + 'parameters' => array(
876 + 'input_text' => array(
877 + 'type' => 'text',
878 + 'title' => esc_html__('Text', 'aiomatic-automatic-ai-content-writer'),
879 + 'default_value' => '',
880 + 'placeholder' => esc_html__('Text to be transformed into speech', 'aiomatic-automatic-ai-content-writer'),
881 + 'description' => esc_html__('Please provide the text which will be transformed into speech.', 'aiomatic-automatic-ai-content-writer')
882 + ),
883 + 'model' => array(
884 + 'type' => 'select',
885 + 'values' => array("tts-1" => "tts-1", "tts-1-hd" => "tts-1-hd"),
886 + 'title' => esc_html__('AI TTS Model', 'aiomatic-automatic-ai-content-writer'),
887 + 'default_value' => 'tts-1',
888 + 'description' => esc_html__('Set the AI TTS model to be used.', 'aiomatic-automatic-ai-content-writer')
889 + ),
890 + 'voice' => array(
891 + 'type' => 'select',
892 + 'values' => array("alloy" => "alloy", "echo" => "echo", "fable" => "fable", "nova" => "nova", "onyx" => "onyx", "shimmer" => "shimmer"),
893 + 'title' => esc_html__('AI Voice Selector', 'aiomatic-automatic-ai-content-writer'),
894 + 'default_value' => 'alloy',
895 + 'description' => esc_html__('Select the voice to be used when generating the text to speech.', 'aiomatic-automatic-ai-content-writer')
896 + ),
897 + 'output' => array(
898 + 'type' => 'select',
899 + 'values' => array("mp3" => "mp3", "opus" => "opus", "aac" => "aac", "flac" => "flac"),
900 + 'title' => esc_html__('AI Voice Output Format', 'aiomatic-automatic-ai-content-writer'),
901 + 'default_value' => 'mp3',
902 + 'description' => esc_html__('Select the output format to be used when generating the text to speech.', 'aiomatic-automatic-ai-content-writer')
903 + ),
904 + 'stability' => array(
905 + 'type' => 'number',
906 + 'title' => esc_html__('Voice Stability', 'aiomatic-automatic-ai-content-writer'),
907 + 'default_value' => '1',
908 + 'placeholder' => esc_html__('1', 'aiomatic-automatic-ai-content-writer'),
909 + 'description' => esc_html__('Select a the Voice speed of the chosen voice. The default value is 1. Min: 0.25, max: 4.', 'aiomatic-automatic-ai-content-writer')
910 + )
911 + )
912 + ],
913 + 'stt_openai' => [
914 + 'id' => 'stt_openai',
915 + 'name' => esc_html__('Speech-To-Text - OpenAI', 'aiomatic-automatic-ai-content-writer'),
916 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
917 + 'required_plugin' => array(),
918 + 'description' => esc_html__('Using OpenAI API, transforms speech to text.', 'aiomatic-automatic-ai-content-writer'),
919 + 'type' => 'create',
920 + 'shortcodes' => array('audio_transcript_'),
921 + 'parameters' => array(
922 + 'audio_url' => array(
923 + 'type' => 'text',
924 + 'title' => esc_html__('Audio URL', 'aiomatic-automatic-ai-content-writer'),
925 + 'default_value' => '',
926 + 'placeholder' => esc_html__('Speech URL to be transformed into text', 'aiomatic-automatic-ai-content-writer'),
927 + 'description' => esc_html__('Please provide the speech URL which will be transformed into text. Supported formats are: mp3, mp4, mpeg, m4a, wav, webm', 'aiomatic-automatic-ai-content-writer')
928 + ),
929 + 'prompt' => array(
930 + 'type' => 'text',
931 + 'title' => esc_html__('Prompt', 'aiomatic-automatic-ai-content-writer'),
932 + 'default_value' => '',
933 + 'placeholder' => esc_html__('Add instructions to the AI', 'aiomatic-automatic-ai-content-writer'),
934 + 'description' => esc_html__('Provide instructions for the AI using this prompt', 'aiomatic-automatic-ai-content-writer')
935 + ),
936 + 'purpose' => array(
937 + 'type' => 'select',
938 + 'values' => array("transcriptions" => "transcriptions", "translations" => "translations"),
939 + 'title' => esc_html__('Purpose', 'aiomatic-automatic-ai-content-writer'),
940 + 'default_value' => 'transcriptions',
941 + 'description' => esc_html__('Set the purpose of the operation.', 'aiomatic-automatic-ai-content-writer')
942 + ),
943 + 'model' => array(
944 + 'type' => 'select',
945 + 'values' => array("whisper-1" => "whisper-1", "gpt-4o-mini-transcribe" => "gpt-4o-mini-transcribe", "gpt-4o-transcribe" => "gpt-4o-transcribe"),
946 + 'title' => esc_html__('AI Model Selector', 'aiomatic-automatic-ai-content-writer'),
947 + 'default_value' => 'whisper-1',
948 + 'description' => esc_html__('Select the model to be used when generating the speech to text.', 'aiomatic-automatic-ai-content-writer')
949 + ),
950 + 'language' => array(
951 + 'type' => 'text',
952 + 'title' => esc_html__('Language', 'aiomatic-automatic-ai-content-writer'),
953 + 'default_value' => 'en',
954 + 'placeholder' => esc_html__('Set the language to be used', 'aiomatic-automatic-ai-content-writer'),
955 + 'description' => esc_html__('Provide the 2 letter language which will be used for this action', 'aiomatic-automatic-ai-content-writer')
956 + ),
957 + 'temperature' => array(
958 + 'type' => 'number',
959 + 'title' => esc_html__('Temperature', 'aiomatic-automatic-ai-content-writer'),
960 + 'default_value' => '0',
961 + 'placeholder' => esc_html__('0', 'aiomatic-automatic-ai-content-writer'),
962 + 'description' => esc_html__('Select a the temperature for the AI action.', 'aiomatic-automatic-ai-content-writer')
963 + )
964 + )
965 + ],
966 + 'webhook_fire' => [
967 + 'id' => 'webhook_fire',
968 + 'name' => esc_html__('Webhook Listener', 'aiomatic-automatic-ai-content-writer'),
969 + 'category' => esc_html__(' - Trigger Blocks', 'aiomatic-automatic-ai-content-writer'),
970 + 'required_plugin' => array(),
971 + 'description' => esc_html__('Using data from a webhook URL, run OmniBlock rules automatically, even when not scheduled. Webhook URL is: %%webhook_url%%', 'aiomatic-automatic-ai-content-writer'),
972 + 'type' => 'create',
973 + 'shortcodes' => array('webhook_data_'),
974 + 'parameters' => array(
975 + 'api_key' => array(
976 + 'type' => 'text',
977 + 'title' => esc_html__('Webhook API Key', 'aiomatic-automatic-ai-content-writer'),
978 + 'default_value' => '',
979 + 'placeholder' => esc_html__('Set your API own API key which will allow access to your webhook', 'aiomatic-automatic-ai-content-writer'),
980 + 'description' => esc_html__('Set your API own API key which will allow access to your webhook. This will prevent unauthorized requests from accessing the webhook.', 'aiomatic-automatic-ai-content-writer')
981 + )
982 + )
983 + ],
984 + 'ai_forms_omniblock' => [
985 + 'id' => 'ai_forms_omniblock',
986 + 'name' => esc_html__('AI Forms Trigger', 'aiomatic-automatic-ai-content-writer'),
987 + 'category' => esc_html__(' - Trigger Blocks', 'aiomatic-automatic-ai-content-writer'),
988 + 'required_plugin' => array(),
989 + 'description' => esc_html__('Using data submitted by an AI Form, run OmniBlock rules automatically, even when not scheduled.', 'aiomatic-automatic-ai-content-writer'),
990 + 'type' => 'create',
991 + 'shortcodes' => array('ai_forms_full_input_'),
992 + 'parameters' => array(
993 + 'api_key' => array(
994 + 'type' => 'text',
995 + 'title' => esc_html__('Trigger API Key', 'aiomatic-automatic-ai-content-writer'),
996 + 'default_value' => '',
997 + 'placeholder' => esc_html__('Set your API own API key which will allow access to your trigger', 'aiomatic-automatic-ai-content-writer'),
998 + 'description' => esc_html__('Set your API own API key which will allow access to your trigger. This will prevent unauthorized requests from accessing the webhook.', 'aiomatic-automatic-ai-content-writer')
999 + )
1000 + )
1001 + ],
1002 + 'ai_chatbot_omniblock' => [
1003 + 'id' => 'ai_chatbot_omniblock',
1004 + 'name' => esc_html__('AI Chatbot Trigger', 'aiomatic-automatic-ai-content-writer'),
1005 + 'category' => esc_html__(' - Trigger Blocks', 'aiomatic-automatic-ai-content-writer'),
1006 + 'required_plugin' => array(),
1007 + 'description' => esc_html__('Using data submitted by the AI Chatbot, run OmniBlock rules automatically, even when not scheduled.', 'aiomatic-automatic-ai-content-writer'),
1008 + 'type' => 'create',
1009 + 'shortcodes' => array('ai_chatbot_full_input_'),
1010 + 'parameters' => array(
1011 + )
1012 + ],
1013 + 'wp_event_trigger' => [
1014 + 'id' => 'wp_event_trigger',
1015 + 'name' => esc_html__('WordPress Event Trigger', 'aiomatic-automatic-ai-content-writer'),
1016 + 'category' => esc_html__(' - Trigger Blocks', 'aiomatic-automatic-ai-content-writer'),
1017 + 'required_plugin' => [],
1018 + 'description' => esc_html__('Triggers OmniBlocks automatically on selected WordPress events.', 'aiomatic-automatic-ai-content-writer'),
1019 + 'type' => 'create',
1020 + 'shortcodes' => ['event_param1_', 'event_param2_', 'event_param3_', 'event_param4_', 'event_param5_', 'event_param6_', 'event_param7_', 'event_param8_', 'event_param9_', 'event_param10_'],
1021 + 'parameters' => [
1022 + 'wp_event' => [
1023 + 'type' => 'select',
1024 + 'title' => esc_html__('WordPress Event', 'aiomatic-automatic-ai-content-writer'),
1025 + 'values' => [
1026 + 'publish_post' => 'Post Published',
1027 + 'save_post' => 'Post Saved (Any Status)',
1028 + 'post_updated' => 'Post Updated',
1029 + 'trash_post' => 'Post Moved to Trash',
1030 + 'untrash_post' => 'Post Restored from Trash',
1031 + 'delete_post' => 'Post Deleted',
1032 + 'transition_post_status' => 'Post Status Changed',
1033 +
1034 + 'user_register' => 'User Registered',
1035 + 'wp_login' => 'User Logged In',
1036 + 'profile_update' => 'User Profile Updated',
1037 + 'delete_user' => 'User Deleted',
1038 + 'password_reset' => 'User Reset Password',
1039 + 'wp_logout' => 'User Logged Out',
1040 + 'edit_user_profile_update' => 'User Profile Edited from Admin',
1041 +
1042 + 'comment_post' => 'Comment Submitted',
1043 + 'wp_insert_comment' => 'Comment Inserted',
1044 + 'edit_comment' => 'Comment Edited',
1045 + 'comment_unapproved_to_approved' => 'Comment Approved',
1046 + 'comment_approved_to_unapproved' => 'Comment Unapproved',
1047 + 'spam_comment' => 'Comment Marked as Spam',
1048 + 'delete_comment' => 'Comment Deleted',
1049 +
1050 + 'add_attachment' => 'Media Attachment Uploaded',
1051 + 'delete_attachment' => 'Media Attachment Deleted',
1052 + 'attachment_updated' => 'Media Attachment Updated',
1053 + 'wp_handle_upload' => 'Media File Uploaded via Upload Handler',
1054 +
1055 + 'woocommerce_thankyou' => 'WooCommerce Order Placed',
1056 + 'woocommerce_order_status_completed' => 'WooCommerce Order Completed',
1057 + 'woocommerce_order_status_cancelled' => 'WooCommerce Order Cancelled',
1058 + 'woocommerce_order_status_processing' => 'Order Processing',
1059 + 'woocommerce_order_status_refunded' => 'Order Refunded',
1060 + 'woocommerce_order_status_failed' => 'Order Failed',
1061 + 'woocommerce_customer_save_address' => 'Customer Updated Address',
1062 + 'woocommerce_new_customer' => 'New Customer Registered',
1063 +
1064 + 'wpcf7_mail_sent' => 'Contact Form 7 Sent',
1065 + 'gform_after_submission' => 'Gravity Forms Submitted',
1066 +
1067 + 'activated_plugin' => 'Plugin Activated',
1068 + 'deactivated_plugin' => 'Plugin Deactivated',
1069 + 'switch_theme' => 'Theme Switched',
1070 + 'upgrader_process_complete' => 'Plugin/Theme/WordPress Updated',
1071 + 'after_switch_theme' => 'Theme Activated (after switch)',
1072 +
1073 + 'aiomatic_custom_event' => 'Custom Aimogen Event (aiomatic_custom_event)',
1074 + 'aiomatic_custom_event2' => 'Custom Aimogen Event 2 (aiomatic_custom_event2)',
1075 + 'aiomatic_custom_event3' => 'Custom Aimogen Event 3 (aiomatic_custom_event3)',
1076 + 'aiomatic_custom_event4' => 'Custom Aimogen Event 4 (aiomatic_custom_event4)',
1077 + 'aiomatic_custom_event5' => 'Custom Aimogen Event 5 (aiomatic_custom_event5)',
1078 + 'aiomatic_custom_event6' => 'Custom Aimogen Event 6 (aiomatic_custom_event6)',
1079 + ],
1080 + 'default_value' => 'publish_post',
1081 + 'description' => esc_html__('Choose the WordPress event that will trigger this OmniBlock.', 'aiomatic-automatic-ai-content-writer')
1082 + ]
1083 + ]
1084 + ],
1085 + 'post_import' => [
1086 + 'id' => 'post_import',
1087 + 'name' => esc_html__('Post Data Importing', 'aiomatic-automatic-ai-content-writer'),
1088 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
1089 + 'required_plugin' => array(),
1090 + 'description' => esc_html__('Returns content from a specific post ID or search query. You can get many specific data from a post, based on its ID or by a search query', 'aiomatic-automatic-ai-content-writer'),
1091 + 'type' => 'create',
1092 + 'shortcodes' => array('post_id_', 'post_url_', 'post_title_', 'post_content_', 'post_excerpt_', 'post_categories_', 'post_tags_', 'post_author_', 'post_date_', 'post_status_', 'post_type_', 'post_image_'),
1093 + 'parameters' => array(
1094 + 'input_text' => array(
1095 + 'type' => 'text',
1096 + 'title' => esc_html__('Post ID / Advanced Query', 'aiomatic-automatic-ai-content-writer'),
1097 + 'default_value' => '',
1098 + 'placeholder' => esc_html__('Input a post ID or an advanced query', 'aiomatic-automatic-ai-content-writer'),
1099 + 'description' => sprintf(
1100 + esc_html__(
1101 + 'Enter the post ID you want to query. You can also define advanced query parameters to control which posts are processed. Example: to process posts from a specific category, use: &category_name=category_slug. To ensure a single post from the query is processed only once, add this parameter: aiomatic_unique_tag=your_unique_tag. Learn more about available parameters: %s',
1102 + 'aiomatic-automatic-ai-content-writer'
1103 + ),
1104 + '<a href="https://developer.wordpress.org/reference/classes/wp_query/" target="_blank">WP_Query documentation</a>'
1105 + ),
1106 + )
1107 + )
1108 + ],
1109 + 'random_line' => [
1110 + 'id' => 'random_line',
1111 + 'name' => esc_html__('Random Line Of Text', 'aiomatic-automatic-ai-content-writer'),
1112 + 'category' => esc_html__(' - Content Gathering Blocks', 'aiomatic-automatic-ai-content-writer'),
1113 + 'required_plugin' => array(),
1114 + 'description' => esc_html__('Returns a random line of text, from the lines entered in the OmniBlock input.', 'aiomatic-automatic-ai-content-writer'),
1115 + 'type' => 'create',
1116 + 'shortcodes' => array('random_line_'),
1117 + 'parameters' => array(
1118 + 'input_text' => array(
1119 + 'type' => 'textarea',
1120 + 'title' => esc_html__('Text Input (Multiline)', 'aiomatic-automatic-ai-content-writer'),
1121 + 'default_value' => '',
1122 + 'placeholder' => esc_html__('Input a multiline text', 'aiomatic-automatic-ai-content-writer'),
1123 + 'description' => esc_html__('Input a multiline text, this OmniBlock will select at each run, a random line from it', 'aiomatic-automatic-ai-content-writer')
1124 + )
1125 + )
1126 + ],
1127 + 'if_block' => [
1128 + 'id' => 'if_block',
1129 + 'name' => esc_html__('Conditional (IF) OmniBlock', 'aiomatic-automatic-ai-content-writer'),
1130 + 'category' => esc_html__(' - Logic Blocks', 'aiomatic-automatic-ai-content-writer'),
1131 + 'required_plugin' => array(),
1132 + 'description' => esc_html__('Executes a set of OmniBlocks if a condition is met, otherwise executes another set of OmniBlocks.', 'aiomatic-automatic-ai-content-writer'),
1133 + 'type' => 'create',
1134 + 'shortcodes' => array(),
1135 + 'parameters' => array(
1136 + 'condition' => array(
1137 + 'type' => 'textarea',
1138 + 'title' => esc_html__('Condition', 'aiomatic-automatic-ai-content-writer'),
1139 + 'default_value' => '',
1140 + 'placeholder' => esc_html__('Set the condition to be evaluated', 'aiomatic-automatic-ai-content-writer'),
1141 + 'description' => esc_html__('Set the condition which will be evaluated. This will get the result of the condition.', 'aiomatic-automatic-ai-content-writer')
1142 + ),
1143 + 'evaluation_method' => array(
1144 + 'type' => 'select',
1145 + 'values' => array("equals" => "Equals", 'not_equals' => 'Not Equals', 'contains' => 'Contains', 'not_contains' => 'Not Contains', 'greater_than' => 'Greater Than', 'less_than' => 'Less Than', 'starts_with' => 'Starts With', 'not_starts_with' => 'Not Starts With', 'ends_with' => 'Ends With', 'not_ends_with' => 'Not Ends With'),
1146 + 'title' => esc_html__('Evaluation Method', 'aiomatic-automatic-ai-content-writer'),
1147 + 'default_value' => 'equals',
1148 + 'description' => esc_html__('Select the method to evaluate the condition with the expected value.', 'aiomatic-automatic-ai-content-writer')
1149 + ),
1150 + 'expected_value' => array(
1151 + 'type' => 'textarea',
1152 + 'title' => esc_html__('Expected Value', 'aiomatic-automatic-ai-content-writer'),
1153 + 'default_value' => '',
1154 + 'placeholder' => esc_html__('Set the expected value of the condition', 'aiomatic-automatic-ai-content-writer'),
1155 + 'description' => esc_html__('Set the expected value which will be compared with the result of the condition.', 'aiomatic-automatic-ai-content-writer')
1156 + ),
1157 + 'true_blocks' => array(
1158 + 'type' => 'textarea',
1159 + 'title' => esc_html__('Condition True Blocks', 'aiomatic-automatic-ai-content-writer'),
1160 + 'default_value' => '',
1161 + 'placeholder' => esc_html__('List of block IDs to execute if the condition is true', 'aiomatic-automatic-ai-content-writer'),
1162 + 'description' => esc_html__('Set the list of block IDs to execute if the condition is true, separated by commas.', 'aiomatic-automatic-ai-content-writer')
1163 + ),
1164 + 'false_blocks' => array(
1165 + 'type' => 'textarea',
1166 + 'title' => esc_html__('Condition False Blocks', 'aiomatic-automatic-ai-content-writer'),
1167 + 'default_value' => '',
1168 + 'placeholder' => esc_html__('List of block IDs to execute if the condition is false', 'aiomatic-automatic-ai-content-writer'),
1169 + 'description' => esc_html__('Set the list of block IDs to execute if the condition is false, separated by commas.', 'aiomatic-automatic-ai-content-writer')
1170 + )
1171 + )
1172 + ],
1173 + 'wait_block' => [
1174 + 'id' => 'wait_block',
1175 + 'name' => esc_html__('Waits for the specified amount of time', 'aiomatic-automatic-ai-content-writer'),
1176 + 'category' => esc_html__(' - Logic Blocks', 'aiomatic-automatic-ai-content-writer'),
1177 + 'required_plugin' => array(),
1178 + 'description' => esc_html__('This OmniBlock will add a delay in the execution logic of your OmniBlock queue.', 'aiomatic-automatic-ai-content-writer'),
1179 + 'type' => 'create',
1180 + 'shortcodes' => array(),
1181 + 'parameters' => array(
1182 + 'wait' => array(
1183 + 'type' => 'textarea',
1184 + 'title' => esc_html__('Delay Time', 'aiomatic-automatic-ai-content-writer'),
1185 + 'default_value' => '',
1186 + 'placeholder' => esc_html__('1 minute', 'aiomatic-automatic-ai-content-writer'),
1187 + 'description' => esc_html__('Add a time delay for how long should the plugin wait. You can use natural language, examples: 1 minute, 1 second, 1 hour, 1 day, etc. You can also add a comma separated list of values, in this case, a random value will be selected at each run.', 'aiomatic-automatic-ai-content-writer')
1188 + )
1189 + )
1190 + ],
1191 + 'jump_block' => [
1192 + 'id' => 'jump_block',
1193 + 'name' => esc_html__('Jump To OmniBlock ID', 'aiomatic-automatic-ai-content-writer'),
1194 + 'category' => esc_html__(' - Logic Blocks', 'aiomatic-automatic-ai-content-writer'),
1195 + 'required_plugin' => array(),
1196 + 'description' => esc_html__('Jumps to a specific OmniBlock ID and continues execution of the OmniBlock queue from that specific location. You can also add a comma separated list of OmniBlock IDs, in this case, the plugin will select a random ID each time it executes the Jump OmniBlock.', 'aiomatic-automatic-ai-content-writer'),
1197 + 'type' => 'create',
1198 + 'shortcodes' => array(),
1199 + 'parameters' => array(
1200 + 'jumpto' => array(
1201 + 'type' => 'textarea',
1202 + 'title' => esc_html__('Jump To OmniBlock ID', 'aiomatic-automatic-ai-content-writer'),
1203 + 'default_value' => '',
1204 + 'placeholder' => esc_html__('Set the ID of the OmniBlock where to jump', 'aiomatic-automatic-ai-content-writer'),
1205 + 'description' => esc_html__('Set the ID of the OmniBlock where to jump', 'aiomatic-automatic-ai-content-writer')
1206 + )
1207 + )
1208 + ],
1209 + 'exit_block' => [
1210 + 'id' => 'exit_block',
1211 + 'name' => esc_html__('Exit OmniBlock', 'aiomatic-automatic-ai-content-writer'),
1212 + 'category' => esc_html__(' - Logic Blocks', 'aiomatic-automatic-ai-content-writer'),
1213 + 'required_plugin' => array(),
1214 + 'description' => esc_html__('Finishes the execution queue of OmniBlocks. This block is useful when combined with an IF or a Jump OmniBlock type.', 'aiomatic-automatic-ai-content-writer'),
1215 + 'type' => 'create',
1216 + 'shortcodes' => array(),
1217 + 'parameters' => array(
1218 + )
1219 + ]
1220 + ]);
1221 + aiomatic_sort_by_category($all_blocks);
1222 + return $all_blocks;
1223 + }
1224 + function aiomatic_sort_by_category(&$array)
1225 + {
1226 + uasort($array, function($a, $b) {
1227 + return strcmp($a['category'], $b['category']);
1228 + });
1229 + }
1230 + function aiomatic_add_block_types($block_types)
1231 + {
1232 + $block_types['send_email'] = [
1233 + 'id' => 'send_email',
1234 + 'name' => 'Send Email',
1235 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1236 + 'required_plugin' => array(),
1237 + 'description' => esc_html__('Sends an email to your desired email address', 'aiomatic-automatic-ai-content-writer'),
1238 + 'type' => 'save',
1239 + 'shortcodes' => array(),
1240 + 'parameters' => array(
1241 + 'email_title' => array(
1242 + 'type' => 'text',
1243 + 'title' => esc_html__('Email Subject', 'aiomatic-automatic-ai-content-writer'),
1244 + 'default_value' => '',
1245 + 'placeholder' => esc_html__('Set the subject of the email to be sent', 'aiomatic-automatic-ai-content-writer'),
1246 + 'description' => esc_html__('Set the subject of the email to be sent. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1247 + ),
1248 + 'email_content' => array(
1249 + 'type' => 'textarea',
1250 + 'title' => esc_html__('Email Content', 'aiomatic-automatic-ai-content-writer'),
1251 + 'default_value' => '',
1252 + 'placeholder' => esc_html__('Set the content of the email to be sent', 'aiomatic-automatic-ai-content-writer'),
1253 + 'description' => esc_html__('Set the content of the email to be sent. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1254 + ),
1255 + 'email_recipient' => array(
1256 + 'type' => 'text',
1257 + 'title' => esc_html__('Email Recipient Address', 'aiomatic-automatic-ai-content-writer'),
1258 + 'default_value' => '',
1259 + 'placeholder' => esc_html__('Set the email address to which to send the email', 'aiomatic-automatic-ai-content-writer'),
1260 + 'description' => esc_html__('Set the email address to which to send the email. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1261 + )
1262 + )
1263 + ];
1264 + $block_types['save_file'] = [
1265 + 'id' => 'save_file',
1266 + 'name' => 'Save To File',
1267 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1268 + 'required_plugin' => array(),
1269 + 'description' => esc_html__('Save content to file', 'aiomatic-automatic-ai-content-writer'),
1270 + 'type' => 'save',
1271 + 'shortcodes' => array(),
1272 + 'parameters' => array(
1273 + 'post_template' => array(
1274 + 'type' => 'textarea',
1275 + 'title' => esc_html__('File Content Template', 'aiomatic-automatic-ai-content-writer'),
1276 + 'default_value' => '',
1277 + 'placeholder' => esc_html__('Set the main file content', 'aiomatic-automatic-ai-content-writer'),
1278 + 'description' => esc_html__('Set the main file content. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1279 + ),
1280 + 'file_type' => array(
1281 + 'type' => 'file_type_selector',
1282 + 'title' => esc_html__('File Type', 'aiomatic-automatic-ai-content-writer'),
1283 + 'default_value' => '',
1284 + 'description' => esc_html__('Set the file type of the saved file.', 'aiomatic-automatic-ai-content-writer')
1285 + ),
1286 + 'send_type' => array(
1287 + 'type' => 'location_selector',
1288 + 'title' => esc_html__('File Location', 'aiomatic-automatic-ai-content-writer'),
1289 + 'default_value' => '',
1290 + 'description' => esc_html__('Set the location of the saved file.', 'aiomatic-automatic-ai-content-writer')
1291 + )
1292 + )
1293 + ];
1294 + $block_types['send_facebook'] = [
1295 + 'id' => 'send_facebook',
1296 + 'name' => 'Send Text/Link To Facebook',
1297 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1298 + 'required_plugin' => array('fbomatic-facebook-post-generator/fbomatic-facebook-post-generator.php' => array('F-omatic Automatic Post Generator', 'https://1.envato.market/fbomatic')),
1299 + 'description' => esc_html__('Sends text/link posts to Facebook pages', 'aiomatic-automatic-ai-content-writer'),
1300 + 'type' => 'save',
1301 + 'shortcodes' => array(),
1302 + 'parameters' => array(
1303 + 'page_to_post' => array(
1304 + 'type' => 'facebook_page_selector',
1305 + 'title' => esc_html__('Page Where to Publish Posts', 'aiomatic-automatic-ai-content-writer'),
1306 + 'default_value' => '',
1307 + 'description' => esc_html__('Select the page associated with your App ID, where you want to publish your posts.', 'aiomatic-automatic-ai-content-writer')
1308 + ),
1309 + 'post_template' => array(
1310 + 'type' => 'textarea',
1311 + 'title' => esc_html__('Facebook Post Template', 'aiomatic-automatic-ai-content-writer'),
1312 + 'default_value' => '',
1313 + 'placeholder' => esc_html__('Set the main Facebook post content', 'aiomatic-automatic-ai-content-writer'),
1314 + 'description' => esc_html__('Set the main Facebook post content. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1315 + ),
1316 + 'post_link' => array(
1317 + 'type' => 'url',
1318 + 'title' => esc_html__('Facebook Post Link', 'aiomatic-automatic-ai-content-writer'),
1319 + 'default_value' => '',
1320 + 'placeholder' => esc_html__('Set the link of the Facebook post', 'aiomatic-automatic-ai-content-writer'),
1321 + 'description' => esc_html__('Set the link of the Facebook post. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1322 + )
1323 + )
1324 + ];
1325 + $block_types['send_image_facebook'] = [
1326 + 'id' => 'send_image_facebook',
1327 + 'name' => 'Send Image To Facebook',
1328 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1329 + 'required_plugin' => array('fbomatic-facebook-post-generator/fbomatic-facebook-post-generator.php' => array('F-omatic Automatic Post Generator', 'https://1.envato.market/fbomatic')),
1330 + 'description' => esc_html__('Sends posts to Facebook pages', 'aiomatic-automatic-ai-content-writer'),
1331 + 'type' => 'save',
1332 + 'shortcodes' => array(),
1333 + 'parameters' => array(
1334 + 'page_to_post' => array(
1335 + 'type' => 'facebook_page_selector',
1336 + 'title' => esc_html__('Page Where to Publish Posts', 'aiomatic-automatic-ai-content-writer'),
1337 + 'default_value' => '',
1338 + 'description' => esc_html__('Select the page associated with your App ID, where you want to publish your posts.', 'aiomatic-automatic-ai-content-writer')
1339 + ),
1340 + 'image_link' => array(
1341 + 'type' => 'url',
1342 + 'title' => esc_html__('Image URL', 'aiomatic-automatic-ai-content-writer'),
1343 + 'default_value' => '',
1344 + 'placeholder' => esc_html__('Set the URL of the Facebook image post', 'aiomatic-automatic-ai-content-writer'),
1345 + 'description' => esc_html__('Set the URL of the Facebook image post. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1346 + ),
1347 + 'post_template' => array(
1348 + 'type' => 'textarea',
1349 + 'title' => esc_html__('Image Caption', 'aiomatic-automatic-ai-content-writer'),
1350 + 'default_value' => '',
1351 + 'placeholder' => esc_html__('Set the caption of the Facebook image', 'aiomatic-automatic-ai-content-writer'),
1352 + 'description' => esc_html__('Set the caption of the Facebook image. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1353 + )
1354 + )
1355 + ];
1356 + $block_types['send_image_instagram'] = [
1357 + 'id' => 'send_image_instagram',
1358 + 'name' => 'Send Image To Instagram',
1359 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1360 + 'required_plugin' => array('instamatic-instagram-post-generator/instamatic-instagram-post-generator.php' => array('iMediamatic - Social Media Poster', 'https://1.envato.market/instamatic')),
1361 + 'description' => esc_html__('Sends posts to Instagram pages', 'aiomatic-automatic-ai-content-writer'),
1362 + 'type' => 'save',
1363 + 'shortcodes' => array(),
1364 + 'parameters' => array(
1365 + 'image_link' => array(
1366 + 'type' => 'url',
1367 + 'title' => esc_html__('Image URL', 'aiomatic-automatic-ai-content-writer'),
1368 + 'default_value' => '',
1369 + 'placeholder' => esc_html__('Set the URL of the Instagram image post', 'aiomatic-automatic-ai-content-writer'),
1370 + 'description' => esc_html__('Set the URL of the Instagram image post. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1371 + ),
1372 + 'post_template' => array(
1373 + 'type' => 'textarea',
1374 + 'title' => esc_html__('Image Text', 'aiomatic-automatic-ai-content-writer'),
1375 + 'default_value' => '',
1376 + 'placeholder' => esc_html__('Set the text of the Instagram image', 'aiomatic-automatic-ai-content-writer'),
1377 + 'description' => esc_html__('Set the text of the Instagram image. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1378 + )
1379 + )
1380 + ];
1381 + $block_types['send_image_pinterest'] = [
1382 + 'id' => 'send_image_pinterest',
1383 + 'name' => 'Send Image To Pinterest',
1384 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1385 + 'required_plugin' => array('pinterestomatic-pinterest-post-generator/pinterestomatic-pinterest-post-generator.php' => array('Pinterestomatic - Social Media Poster', 'https://1.envato.market/pinterestomatic')),
1386 + 'description' => esc_html__('Sends pins to Pinterest boards', 'aiomatic-automatic-ai-content-writer'),
1387 + 'type' => 'save',
1388 + 'shortcodes' => array(),
1389 + 'parameters' => array(
1390 + 'page_to_post' => array(
1391 + 'type' => 'pinterest_board_selector',
1392 + 'title' => esc_html__('Board Where to Publish Pins', 'aiomatic-automatic-ai-content-writer'),
1393 + 'default_value' => '',
1394 + 'description' => esc_html__('Select the board associated with your account, where you want to publish your pins.', 'aiomatic-automatic-ai-content-writer')
1395 + ),
1396 + 'image_link' => array(
1397 + 'type' => 'url',
1398 + 'title' => esc_html__('Image URL', 'aiomatic-automatic-ai-content-writer'),
1399 + 'default_value' => '',
1400 + 'placeholder' => esc_html__('Set the URL of the Pinterest image post', 'aiomatic-automatic-ai-content-writer'),
1401 + 'description' => esc_html__('Set the URL of the Pinterest image post. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1402 + ),
1403 + 'post_title' => array(
1404 + 'type' => 'textarea',
1405 + 'title' => esc_html__('Pin Title', 'aiomatic-automatic-ai-content-writer'),
1406 + 'default_value' => '',
1407 + 'placeholder' => esc_html__('Set the title of the Pinterest pin', 'aiomatic-automatic-ai-content-writer'),
1408 + 'description' => esc_html__('Set the title of the Pinterest pin. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1409 + ),
1410 + 'post_template' => array(
1411 + 'type' => 'textarea',
1412 + 'title' => esc_html__('Pin Description', 'aiomatic-automatic-ai-content-writer'),
1413 + 'default_value' => '',
1414 + 'placeholder' => esc_html__('Set the description of the Pinterest pin', 'aiomatic-automatic-ai-content-writer'),
1415 + 'description' => esc_html__('Set the description of the Pinterest pin. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1416 + ),
1417 + 'pin_me' => array(
1418 + 'type' => 'url',
1419 + 'title' => esc_html__('Pin URL', 'aiomatic-automatic-ai-content-writer'),
1420 + 'default_value' => '',
1421 + 'placeholder' => esc_html__('Set the URL of the Pinterest pin', 'aiomatic-automatic-ai-content-writer'),
1422 + 'description' => esc_html__('Set the URL of the Pinterest pin. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1423 + )
1424 + )
1425 + ];
1426 + $block_types['send_twitter'] = [
1427 + 'id' => 'send_twitter',
1428 + 'name' => 'Send To X (Twitter)',
1429 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1430 + 'required_plugin' => array('twitomatic-twitter-post-generator/twitomatic-twitter-post-generator.php' => array('Twitomatic Automatic Post Generator', 'https://1.envato.market/twitomatic')),
1431 + 'description' => esc_html__('Sends posts to X (Twitter) pages', 'aiomatic-automatic-ai-content-writer'),
1432 + 'type' => 'save',
1433 + 'shortcodes' => array(),
1434 + 'parameters' => array(
1435 + 'post_template' => array(
1436 + 'type' => 'textarea',
1437 + 'title' => esc_html__('X (Twitter) Post Template', 'aiomatic-automatic-ai-content-writer'),
1438 + 'default_value' => '',
1439 + 'placeholder' => esc_html__('Set the main X (Twitter) post content', 'aiomatic-automatic-ai-content-writer'),
1440 + 'description' => esc_html__('Set the main X (Twitter) post content. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1441 + ),
1442 + 'featured_image' => array(
1443 + 'type' => 'url',
1444 + 'title' => esc_html__('X (Twitter) Post Image URL', 'aiomatic-automatic-ai-content-writer'),
1445 + 'default_value' => '',
1446 + 'placeholder' => esc_html__('Set the link of the X (Twitter) post image', 'aiomatic-automatic-ai-content-writer'),
1447 + 'description' => esc_html__('Set the link of the X (Twitter) post image. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1448 + )
1449 + )
1450 + ];
1451 + $block_types['send_threads'] = [
1452 + 'id' => 'send_threads',
1453 + 'name' => 'Send To Threads',
1454 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1455 + 'required_plugin' => array('threadsomatic-threads-auto-poster/threadsomatic-threads-auto-poster.php' => array('Threadsomatic Threads Auto Poster', 'https://wpbay.com/product/threadsomatic-threads-auto-poster/')),
1456 + 'description' => esc_html__('Sends posts to Threads pages', 'aiomatic-automatic-ai-content-writer'),
1457 + 'type' => 'save',
1458 + 'shortcodes' => array(),
1459 + 'parameters' => array(
1460 + 'post_template' => array(
1461 + 'type' => 'textarea',
1462 + 'title' => esc_html__('Threads Post Template', 'aiomatic-automatic-ai-content-writer'),
1463 + 'default_value' => '',
1464 + 'placeholder' => esc_html__('Set the main Threads post content', 'aiomatic-automatic-ai-content-writer'),
1465 + 'description' => esc_html__('Set the main Threads post content. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1466 + ),
1467 + 'featured_image' => array(
1468 + 'type' => 'url',
1469 + 'title' => esc_html__('Threads Post Image URL', 'aiomatic-automatic-ai-content-writer'),
1470 + 'default_value' => '',
1471 + 'placeholder' => esc_html__('Set the link of the Threads post image', 'aiomatic-automatic-ai-content-writer'),
1472 + 'description' => esc_html__('Set the link of the Threads post image. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1473 + )
1474 + )
1475 + ];
1476 + $block_types['send_gmb'] = [
1477 + 'id' => 'send_gmb',
1478 + 'name' => 'Send To Google My Business',
1479 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1480 + 'required_plugin' => array('businessomatic-google-my-business-post-generator/businessomatic-google-my-business-post-generator.php' => array('Businessomatic Automatic Post Generator', 'https://1.envato.market/businessomatic')),
1481 + 'description' => esc_html__('Sends posts to Google My Business pages', 'aiomatic-automatic-ai-content-writer'),
1482 + 'type' => 'save',
1483 + 'shortcodes' => array(),
1484 + 'parameters' => array(
1485 + 'page_to_post' => array(
1486 + 'type' => 'gpb_page_selector',
1487 + 'title' => esc_html__('Business Where to Publish Posts', 'aiomatic-automatic-ai-content-writer'),
1488 + 'default_value' => '',
1489 + 'description' => esc_html__('Select the business associated with your account, where you want to publish your posts.', 'aiomatic-automatic-ai-content-writer')
1490 + ),
1491 + 'post_template' => array(
1492 + 'type' => 'textarea',
1493 + 'title' => esc_html__('Google My Business Post Template', 'aiomatic-automatic-ai-content-writer'),
1494 + 'default_value' => '',
1495 + 'placeholder' => esc_html__('Set the main Google My Business post content', 'aiomatic-automatic-ai-content-writer'),
1496 + 'description' => esc_html__('Set the main Google My Business post content. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1497 + ),
1498 + 'featured_image' => array(
1499 + 'type' => 'url',
1500 + 'title' => esc_html__('Google My Business Post Image URL', 'aiomatic-automatic-ai-content-writer'),
1501 + 'default_value' => '',
1502 + 'placeholder' => esc_html__('Set the link of the Google My Business post image', 'aiomatic-automatic-ai-content-writer'),
1503 + 'description' => esc_html__('Set the link of the Google My Business post image. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1504 + )
1505 + )
1506 + ];
1507 + $block_types['send_community_youtube'] = [
1508 + 'id' => 'send_community_youtube',
1509 + 'name' => 'Send To YouTube Community',
1510 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1511 + 'required_plugin' => array('youtubomatic-youtube-post-generator/youtubomatic-youtube-post-generator.php' => array('Youtubomatic Automatic Post Generator', 'https://1.envato.market/youtubomatic')),
1512 + 'description' => esc_html__('Sends posts to YouTube Community pages', 'aiomatic-automatic-ai-content-writer'),
1513 + 'type' => 'save',
1514 + 'shortcodes' => array(),
1515 + 'parameters' => array(
1516 + 'post_template' => array(
1517 + 'type' => 'textarea',
1518 + 'title' => esc_html__('YouTube Community Post Template', 'aiomatic-automatic-ai-content-writer'),
1519 + 'default_value' => '',
1520 + 'placeholder' => esc_html__('Set the main YouTube Community post content', 'aiomatic-automatic-ai-content-writer'),
1521 + 'description' => esc_html__('Set the main YouTube Community post content. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1522 + ),
1523 + 'featured_image' => array(
1524 + 'type' => 'url',
1525 + 'title' => esc_html__('YouTube Community Post Image URL', 'aiomatic-automatic-ai-content-writer'),
1526 + 'default_value' => '',
1527 + 'placeholder' => esc_html__('Set the link of the post image', 'aiomatic-automatic-ai-content-writer'),
1528 + 'description' => esc_html__('Set the link of the YouTube Community post image. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1529 + ),
1530 + 'send_type' => array(
1531 + 'type' => 'yt_community_selector',
1532 + 'title' => esc_html__('YouTube Community Post Type', 'aiomatic-automatic-ai-content-writer'),
1533 + 'default_value' => '',
1534 + 'description' => esc_html__('Set the YouTube Community post type.', 'aiomatic-automatic-ai-content-writer')
1535 + )
1536 + )
1537 + ];
1538 + $block_types['send_reddit'] = [
1539 + 'id' => 'send_reddit',
1540 + 'name' => 'Send To Reddit',
1541 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1542 + 'required_plugin' => array('redditomatic-reddit-post-generator/redditomatic-reddit-post-generator.php' => array('Redditomatic Automatic Post Generator', 'https://1.envato.market/redditomatic')),
1543 + 'description' => esc_html__('Sends posts to Reddit subreddits', 'aiomatic-automatic-ai-content-writer'),
1544 + 'type' => 'save',
1545 + 'shortcodes' => array(),
1546 + 'parameters' => array(
1547 + 'subreddit_to_post' => array(
1548 + 'type' => 'textarea',
1549 + 'title' => esc_html__('Subreddits Where To Publish Posts', 'aiomatic-automatic-ai-content-writer'),
1550 + 'default_value' => '',
1551 + 'placeholder' => esc_html__('Set the subreddits where to publish the content (comma separated list)', 'aiomatic-automatic-ai-content-writer'),
1552 + 'description' => esc_html__('Set the subreddits where to publish the content (comma separated list).', 'aiomatic-automatic-ai-content-writer')
1553 + ),
1554 + 'title_template' => array(
1555 + 'type' => 'textarea',
1556 + 'title' => esc_html__('Reddit Post Title Template', 'aiomatic-automatic-ai-content-writer'),
1557 + 'default_value' => '',
1558 + 'placeholder' => esc_html__('Set the main Reddit post title', 'aiomatic-automatic-ai-content-writer'),
1559 + 'description' => esc_html__('Set the main Reddit post title. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1560 + ),
1561 + 'post_template' => array(
1562 + 'type' => 'textarea',
1563 + 'title' => esc_html__('Reddit Post Content Template', 'aiomatic-automatic-ai-content-writer'),
1564 + 'default_value' => '',
1565 + 'placeholder' => esc_html__('Set the main Reddit post content', 'aiomatic-automatic-ai-content-writer'),
1566 + 'description' => esc_html__('Set the main Reddit post content. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1567 + ),
1568 + 'send_type' => array(
1569 + 'type' => 'reddit_selector',
1570 + 'title' => esc_html__('Reddit Post Type', 'aiomatic-automatic-ai-content-writer'),
1571 + 'default_value' => '',
1572 + 'description' => esc_html__('Set the Reddit post type.', 'aiomatic-automatic-ai-content-writer')
1573 + )
1574 + )
1575 + ];
1576 + $block_types['send_linkedin'] = [
1577 + 'id' => 'send_linkedin',
1578 + 'name' => 'Send To LinkedIn',
1579 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1580 + 'required_plugin' => array('linkedinomatic-linkedin-post-generator/linkedinomatic-linkedin-post-generator.php' => array('Linkedinomatic Auto Poster', 'https://1.envato.market/linkedinomatic')),
1581 + 'description' => esc_html__('Sends posts to LinkedIn pages', 'aiomatic-automatic-ai-content-writer'),
1582 + 'type' => 'save',
1583 + 'shortcodes' => array(),
1584 + 'parameters' => array(
1585 + 'page_to_post' => array(
1586 + 'type' => 'linkedin_page_selector',
1587 + 'title' => esc_html__('Page Where to Publish Posts', 'aiomatic-automatic-ai-content-writer'),
1588 + 'default_value' => '',
1589 + 'description' => esc_html__('Select the page associated with your App ID, where you want to publish your posts.', 'aiomatic-automatic-ai-content-writer')
1590 + ),
1591 + 'post_title' => array(
1592 + 'type' => 'textarea',
1593 + 'title' => esc_html__('LinkedIn Post Title', 'aiomatic-automatic-ai-content-writer'),
1594 + 'default_value' => '',
1595 + 'placeholder' => esc_html__('Set the main LinkedIn post title', 'aiomatic-automatic-ai-content-writer'),
1596 + 'description' => esc_html__('Set the main LinkedIn post title. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1597 + ),
1598 + 'post_link' => array(
1599 + 'type' => 'url',
1600 + 'title' => esc_html__('LinkedIn Post Link', 'aiomatic-automatic-ai-content-writer'),
1601 + 'default_value' => '',
1602 + 'placeholder' => esc_html__('Set the main LinkedIn post link', 'aiomatic-automatic-ai-content-writer'),
1603 + 'description' => esc_html__('Set the main LinkedIn post link. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1604 + ),
1605 + 'post_description' => array(
1606 + 'type' => 'textarea',
1607 + 'title' => esc_html__('LinkedIn Post Description', 'aiomatic-automatic-ai-content-writer'),
1608 + 'default_value' => '',
1609 + 'placeholder' => esc_html__('Set the main LinkedIn post description', 'aiomatic-automatic-ai-content-writer'),
1610 + 'description' => esc_html__('Set the main LinkedIn post description. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1611 + ),
1612 + 'attach_lnk' => array(
1613 + 'type' => 'checkbox',
1614 + 'title' => esc_html__('Attach Links To Created Posts', 'aiomatic-automatic-ai-content-writer'),
1615 + 'default_value' => '',
1616 + 'description' => esc_html__('Set if you want to attach links to created LinkedIn posts.', 'aiomatic-automatic-ai-content-writer')
1617 + ),
1618 + 'post_template' => array(
1619 + 'type' => 'textarea',
1620 + 'title' => esc_html__('LinkedIn Post Template', 'aiomatic-automatic-ai-content-writer'),
1621 + 'default_value' => '',
1622 + 'placeholder' => esc_html__('Set the main LinkedIn post content', 'aiomatic-automatic-ai-content-writer'),
1623 + 'description' => esc_html__('Set the main LinkedIn post content. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1624 + ),
1625 + 'featured_image' => array(
1626 + 'type' => 'url',
1627 + 'title' => esc_html__('LinkedIn Post Image URL', 'aiomatic-automatic-ai-content-writer'),
1628 + 'default_value' => '',
1629 + 'placeholder' => esc_html__('Set the link of the LinkedIn post image', 'aiomatic-automatic-ai-content-writer'),
1630 + 'description' => esc_html__('Set the link of the LinkedIn post image. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1631 + )
1632 + )
1633 + ];
1634 + $block_types['send_webhook'] = [
1635 + 'id' => 'send_webhook',
1636 + 'name' => 'Send To A Webhook',
1637 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1638 + 'required_plugin' => array(),
1639 + 'description' => esc_html__('Sends content to a webhook', 'aiomatic-automatic-ai-content-writer'),
1640 + 'type' => 'save',
1641 + 'shortcodes' => array(),
1642 + 'parameters' => array(
1643 + 'webhook_url' => array(
1644 + 'type' => 'url',
1645 + 'title' => esc_html__('Webhook URL', 'aiomatic-automatic-ai-content-writer'),
1646 + 'default_value' => '',
1647 + 'placeholder' => esc_html__('Set the webhook URL where to submit the content', 'aiomatic-automatic-ai-content-writer'),
1648 + 'description' => esc_html__('Set the webhook URL where to submit the content.', 'aiomatic-automatic-ai-content-writer')
1649 + ),
1650 + 'webhook_method' => array(
1651 + 'type' => 'method_selector',
1652 + 'title' => esc_html__('Method Selector', 'aiomatic-automatic-ai-content-writer'),
1653 + 'default_value' => '',
1654 + 'description' => esc_html__('Select the request method you want to use, when sending the data to the webhook.', 'aiomatic-automatic-ai-content-writer')
1655 + ),
1656 + 'content_type' => array(
1657 + 'type' => 'content_type_selector',
1658 + 'title' => esc_html__('Content Type', 'aiomatic-automatic-ai-content-writer'),
1659 + 'default_value' => '',
1660 + 'description' => esc_html__('Select the content type you want to send to the webhook. Possible values are JSON or Form Data.', 'aiomatic-automatic-ai-content-writer')
1661 + ),
1662 + 'post_template' => array(
1663 + 'type' => 'textarea',
1664 + 'title' => esc_html__('Content Template', 'aiomatic-automatic-ai-content-writer'),
1665 + 'default_value' => '',
1666 + 'placeholder' => esc_html__('Set the main webhook content', 'aiomatic-automatic-ai-content-writer'),
1667 + 'description' => esc_html__('Set the main webhook content. If you selected JSON type content, enter a valid JSON structure here. If you selected Form Data, enter the form data in this structure: key => value (add new key/value combinations on a new line). Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1668 + ),
1669 + 'headers_template' => array(
1670 + 'type' => 'textarea',
1671 + 'title' => esc_html__('Headers Template', 'aiomatic-automatic-ai-content-writer'),
1672 + 'default_value' => '',
1673 + 'placeholder' => esc_html__('Set content headers (optional)', 'aiomatic-automatic-ai-content-writer'),
1674 + 'description' => esc_html__('Set any headers to send with the webhook request. Enter the headers in this structure: key => value (add new key/value combinations on a new line). Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1675 + )
1676 + )
1677 + ];
1678 + $block_types['god_mode'] = [
1679 + 'id' => 'god_mode',
1680 + 'name' => 'Send To A God Mode Function',
1681 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1682 + 'required_plugin' => array(),
1683 + 'description' => esc_html__('Sends content to a God Mode function, the AI can call any function from your WordPress site. Warning, this feature can be dangerous, use it only if you know what you are doing!', 'aiomatic-automatic-ai-content-writer'),
1684 + 'type' => 'save',
1685 + 'shortcodes' => array('god_mode_'),
1686 + 'parameters' => array(
1687 + 'prompt' => array(
1688 + 'type' => 'textarea',
1689 + 'title' => esc_html__('AI Prompt', 'aiomatic-automatic-ai-content-writer'),
1690 + 'default_value' => '',
1691 + 'placeholder' => esc_html__('Set the AI prompt which will be sent to the God Mode parser', 'aiomatic-automatic-ai-content-writer'),
1692 + 'description' => esc_html__('Set the AI prompt which will be sent to the God Mode parser. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported. You should add here specific instructions on what feature of the God Mode (WordPress functions) should be called by the AI.', 'aiomatic-automatic-ai-content-writer')
1693 + ),
1694 + 'assistant_id' => array(
1695 + 'type' => 'assistant_select',
1696 + 'title' => esc_html__('AI Assistant', 'aiomatic-automatic-ai-content-writer'),
1697 + 'default_value' => '',
1698 + 'description' => esc_html__('Select the AI Assistant to be used with the AI God Mode parser. If you select an assistant, a model cannot be selected any more, but instead, the model assigned to the assistant will be used. Also, the AI Assistant needs to have the God Mode function enabled in its settings.', 'aiomatic-automatic-ai-content-writer')
1699 + ),
1700 + 'model' => array(
1701 + 'type' => 'model_select_function',
1702 + 'title' => esc_html__('AI Model', 'aiomatic-automatic-ai-content-writer'),
1703 + 'default_value' => '',
1704 + 'description' => esc_html__('Select the model to be used with the AI God Mode parser. Only models which support function calling are listed here.', 'aiomatic-automatic-ai-content-writer')
1705 + )
1706 + )
1707 + ];
1708 + $block_types['save_post'] = [
1709 + 'id' => 'save_post',
1710 + 'name' => 'Save Post To WordPress',
1711 + 'category' => esc_html__(' - Content Saving Blocks', 'aiomatic-automatic-ai-content-writer'),
1712 + 'required_plugin' => array(),
1713 + 'description' => esc_html__('Saves the AI created data as a WordPress post', 'aiomatic-automatic-ai-content-writer'),
1714 + 'type' => 'save',
1715 + 'shortcodes' => array('created_post_id_', 'created_post_url_'),
1716 + 'parameters' => array(
1717 + 'post_title' => array(
1718 + 'type' => 'text',
1719 + 'title' => esc_html__('Post Title', 'aiomatic-automatic-ai-content-writer'),
1720 + 'default_value' => '',
1721 + 'placeholder' => esc_html__('Set the title of the post to be created', 'aiomatic-automatic-ai-content-writer'),
1722 + 'description' => esc_html__('Set the title of the post to be created. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1723 + ),
1724 + 'post_content' => array(
1725 + 'type' => 'textarea',
1726 + 'title' => esc_html__('Post Content', 'aiomatic-automatic-ai-content-writer'),
1727 + 'default_value' => '',
1728 + 'placeholder' => esc_html__('Set the content of the post to be created', 'aiomatic-automatic-ai-content-writer'),
1729 + 'description' => esc_html__('Set the content of the post to be created. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1730 + ),
1731 + 'post_excerpt' => array(
1732 + 'type' => 'textarea',
1733 + 'title' => esc_html__('Post Excerpt', 'aiomatic-automatic-ai-content-writer'),
1734 + 'default_value' => '',
1735 + 'placeholder' => esc_html__('Set the excerpt of the post', 'aiomatic-automatic-ai-content-writer'),
1736 + 'description' => esc_html__('Set the excerpt of the post to be created. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported.', 'aiomatic-automatic-ai-content-writer')
1737 + ),
1738 + 'post_slug' => array(
1739 + 'type' => 'text',
1740 + 'title' => esc_html__('Post Slug', 'aiomatic-automatic-ai-content-writer'),
1741 + 'default_value' => '',
1742 + 'placeholder' => esc_html__('Set the slug of the post', 'aiomatic-automatic-ai-content-writer'),
1743 + 'description' => esc_html__('Set the slug of the post (the post URL/name). If you leave this field blank, WordPress will automatically generate the slug of the post from the post tile. Any text that you enter here will be URL encoded, to be compatible with slug creation. The length of the slug should not exceed 200 characters.', 'aiomatic-automatic-ai-content-writer')
1744 + ),
1745 + 'post_author' => array(
1746 + 'type' => 'number',
1747 + 'title' => esc_html__('Post Author ID', 'aiomatic-automatic-ai-content-writer'),
1748 + 'default_value' => '1',
1749 + 'placeholder' => esc_html__('Set the numeric ID of the author of the post', 'aiomatic-automatic-ai-content-writer'),
1750 + 'description' => esc_html__('Select the numeric ID of the author that you want to assign for the automatically generated posts.', 'aiomatic-automatic-ai-content-writer')
1751 + ),
1752 + 'post_status' => array(
1753 + 'type' => 'status_selector',
1754 + 'title' => esc_html__('Post Status', 'aiomatic-automatic-ai-content-writer'),
1755 + 'default_value' => 'publish',
1756 + 'description' => esc_html__('Select the status that you want for the automatically generated posts to have.', 'aiomatic-automatic-ai-content-writer')
1757 + ),
1758 + 'post_type' => array(
1759 + 'type' => 'type_selector',
1760 + 'title' => esc_html__('Post Type', 'aiomatic-automatic-ai-content-writer'),
1761 + 'default_value' => 'post',
1762 + 'description' => esc_html__('Select the type (post/page) for your automatically generated item.', 'aiomatic-automatic-ai-content-writer')
1763 + ),
1764 + 'post_format' => array(
1765 + 'type' => 'format_selector',
1766 + 'title' => esc_html__('Post Format', 'aiomatic-automatic-ai-content-writer'),
1767 + 'default_value' => 'post-format-standard',
1768 + 'description' => esc_html__('If your template supports \'Post Formats\', than you can select one here. If not, leave this at it\'s default value.', 'aiomatic-automatic-ai-content-writer')
1769 + ),
1770 + 'post_parent' => array(
1771 + 'type' => 'number',
1772 + 'title' => esc_html__('Post Parent', 'aiomatic-automatic-ai-content-writer'),
1773 + 'default_value' => '',
1774 + 'placeholder' => esc_html__('Set the ID of the parent of created posts', 'aiomatic-automatic-ai-content-writer'),
1775 + 'description' => esc_html__('Set the ID of the parent of created posts. This is useful for BBPress integration, to assign forum IDs for created topics or for other similar functionalities.', 'aiomatic-automatic-ai-content-writer')
1776 + ),
1777 + 'post_comments' => array(
1778 + 'type' => 'checkbox',
1779 + 'title' => esc_html__('Enable Comments', 'aiomatic-automatic-ai-content-writer'),
1780 + 'default_value' => '1',
1781 + 'description' => esc_html__('Do you want to enable comments for the generated posts?', 'aiomatic-automatic-ai-content-writer')
1782 + ),
1783 + 'post_pingbacks' => array(
1784 + 'type' => 'checkbox',
1785 + 'title' => esc_html__('Enable Pingbacks/Trackbacks', 'aiomatic-automatic-ai-content-writer'),
1786 + 'default_value' => '1',
1787 + 'description' => esc_html__('Do you want to enable pingbacks/trackbacks for the generated posts?', 'aiomatic-automatic-ai-content-writer')
1788 + ),
1789 + 'post_date' => array(
1790 + 'type' => 'text',
1791 + 'title' => esc_html__('Post Date Range', 'aiomatic-automatic-ai-content-writer'),
1792 + 'default_value' => '',
1793 + 'placeholder' => esc_html__('Do you want to set a custom post publish date for posts?', 'aiomatic-automatic-ai-content-writer'),
1794 + 'description' => esc_html__('Do you want to set a custom post publish date for posts? Set the range in the below field. You can set dates in the following format (a random date will be selected from the range): date1 ~ date2. If you don\'t use the ~ character, the date will be considered as a single date string.', 'aiomatic-automatic-ai-content-writer')
1795 + ),
1796 + 'post_custom_fields' => array(
1797 + 'type' => 'textarea',
1798 + 'title' => esc_html__('Custom Fields', 'aiomatic-automatic-ai-content-writer'),
1799 + 'default_value' => '',
1800 + 'placeholder' => esc_html__('custom_field_name1 => custom_field_value1, custom_field_name2 => custom_field_value2', 'aiomatic-automatic-ai-content-writer'),
1801 + 'description' => esc_html__('Set the custom fields that will be set for generated posts. The syntax for this field is the following: custom_field_name1 => custom_field_value1, custom_field_name2 => custom_field_value2', 'aiomatic-automatic-ai-content-writer')
1802 + ),
1803 + 'post_custom_taxonomies' => array(
1804 + 'type' => 'textarea',
1805 + 'title' => esc_html__('Custom Taxonomies', 'aiomatic-automatic-ai-content-writer'),
1806 + 'default_value' => '',
1807 + 'placeholder' => esc_html__('custom_taxonomy_name1 => custom_taxonomy_value1A, custom_taxonomy_value1B; custom_taxonomy_name2 => custom_taxonomy_value2A, custom_taxonomy_value2B', 'aiomatic-automatic-ai-content-writer'),
1808 + 'description' => esc_html__('Set the custom taxonomies that will be set for generated posts. The syntax for this field is the following: custom_taxonomy_name1 => custom_taxonomy_value1A, custom_taxonomy_value1B; custom_taxonomy_name2 => custom_taxonomy_value2A, custom_taxonomy_value2B . You can also set hierarhical taxonomies (parent > child), in this format: custom_taxonomy_name => parent1 > child1 . ', 'aiomatic-automatic-ai-content-writer')
1809 + ),
1810 + 'post_lang' => array(
1811 + 'type' => 'text',
1812 + 'title' => esc_html__('WPML/Polylang Language', 'aiomatic-automatic-ai-content-writer'),
1813 + 'default_value' => '',
1814 + 'placeholder' => esc_html__('en', 'aiomatic-automatic-ai-content-writer'),
1815 + 'description' => esc_html__('Enter a 2 letter language code that will be assigned as the WPML/Polylang language for posts. Example: for German, input: de', 'aiomatic-automatic-ai-content-writer')
1816 + ),
1817 + 'post_categories' => array(
1818 + 'type' => 'text',
1819 + 'title' => esc_html__('Post Categories', 'aiomatic-automatic-ai-content-writer'),
1820 + 'default_value' => '',
1821 + 'placeholder' => esc_html__('Category1, Category2, Category3', 'aiomatic-automatic-ai-content-writer'),
1822 + 'description' => esc_html__('Add a comma separated list of categories to set for posts.', 'aiomatic-automatic-ai-content-writer')
1823 + ),
1824 + 'post_tags' => array(
1825 + 'type' => 'text',
1826 + 'title' => esc_html__('Post Tags', 'aiomatic-automatic-ai-content-writer'),
1827 + 'default_value' => '',
1828 + 'placeholder' => esc_html__('Tag1, Tag2, Tag3', 'aiomatic-automatic-ai-content-writer'),
1829 + 'description' => esc_html__('Add a comma separated list of tags to set for posts.', 'aiomatic-automatic-ai-content-writer')
1830 + ),
1831 + 'featured_image' => array(
1832 + 'type' => 'text',
1833 + 'title' => esc_html__('Featured Image', 'aiomatic-automatic-ai-content-writer'),
1834 + 'default_value' => '',
1835 + 'placeholder' => esc_html__('Set the featured image of the post to be created', 'aiomatic-automatic-ai-content-writer'),
1836 + 'description' => esc_html__('Set the featured image of the post to be created. Additional shortcodes you can use: %%current_date_time%%, %%custom_html%%, %%custom_html2%%, %%random_sentence%%, %%random_sentence2%% + Spintax, Synergy shortcodes, [aicontent] shortcodes and WordPress shortcodes supported. You can also use the numeric IDs of Media Library attachments.', 'aiomatic-automatic-ai-content-writer')
1837 + ),
1838 + 'content_regex' => array(
1839 + 'type' => 'textarea',
1840 + 'title' => esc_html__('Run Regex On Content', 'aiomatic-automatic-ai-content-writer'),
1841 + 'default_value' => '',
1842 + 'placeholder' => esc_html__('Regex expression', 'aiomatic-automatic-ai-content-writer'),
1843 + 'description' => esc_html__('Run regex on post content. To disable this feature, leave this field blank. No Regex separators are required here. You can add multiple Regex expressions, each on a different line.', 'aiomatic-automatic-ai-content-writer')
1844 + ),
1845 + 'replace_regex' => array(
1846 + 'type' => 'textarea',
1847 + 'title' => esc_html__('Replace Matches From Regex', 'aiomatic-automatic-ai-content-writer'),
1848 + 'default_value' => '',
1849 + 'placeholder' => esc_html__('Regex replacement', 'aiomatic-automatic-ai-content-writer'),
1850 + 'description' => esc_html__('Replace the above regex matches with this regex expression. If you want to strip matched content, leave this field blank. No Regex separators are required here. You can add multiple replacement expressions, each on a different line.', 'aiomatic-automatic-ai-content-writer')
1851 + ),
1852 + 'overwrite_existing' => array(
1853 + 'type' => 'checkbox_overwrite',
1854 + 'title' => esc_html__('Overwrite Existing Posts', 'aiomatic-automatic-ai-content-writer'),
1855 + 'default_value' => '',
1856 + 'description' => esc_html__('Select if you want to overwrite existing posts during the publishing process.', 'aiomatic-automatic-ai-content-writer')
1857 + ),
1858 + 'post_id' => array(
1859 + 'type' => 'text',
1860 + 'title' => esc_html__('Post ID (Optional)', 'aiomatic-automatic-ai-content-writer'),
1861 + 'default_value' => '',
1862 + 'placeholder' => esc_html__('Update an existing post ID (optional)', 'aiomatic-automatic-ai-content-writer'),
1863 + 'description' => esc_html__('Update an existing post ID (optional)', 'aiomatic-automatic-ai-content-writer')
1864 + )
1865 + )
1866 + ];
1867 + return $block_types;
1868 + }
1869 + add_filter('aiomniblocks_block_types', 'aiomatic_add_block_types');
1870 + function aiomatic_omniblocks_default_cards()
1871 + {
1872 + $def = get_option('aiomatic_dafault_omni_template', false);
1873 + if(!empty($def))
1874 + {
1875 + $aiomatic_theme = get_post(sanitize_text_field($def));
1876 + if($aiomatic_theme !== null && $aiomatic_theme !== 0)
1877 + {
1878 + $default_json = json_decode($aiomatic_theme->post_content, true);
1879 + if(!empty($default_json))
1880 + {
1881 + return apply_filters('aiomniblocks_block_defaults', $default_json);
1882 + }
1883 + }
1884 + }
1885 + return apply_filters('aiomniblocks_block_defaults', [
1886 + [
1887 + 'identifier' => '1',
1888 + 'name' => 'Create a post title for a keyword',
1889 + 'type' => 'ai_text',
1890 + 'parameters' => array(
1891 + 'prompt' => 'Craft an attention-grabbing and SEO-optimized article title on the topic of "%%keyword%%". This title must be concise, informative, and designed to pique the interest of readers while clearly conveying the topic of the article.',
1892 + 'model' => AIMOGEN_DEFAULT_MODEL,
1893 + 'assistant_id' => '',
1894 + 'critical' => '0'
1895 + )
1896 + ],
1897 + [
1898 + 'identifier' => '2',
1899 + 'name' => 'Create an article about a keyword',
1900 + 'type' => 'ai_text',
1901 + 'parameters' => array(
1902 + 'prompt' => 'Write a comprehensive and SEO-optimized article on the topic of "%%keyword%%". Incorporate relevant keywords naturally throughout the article to enhance search engine visibility. This article must provide valuable information to readers and be well-structured with proper headings, bullet points, and HTML formatting. If needed, you can use WordPress related CSS styling for the article. When applicable, add also HTML tables with WordPress styling (you can use WordPress table classes). If added, table data must be relevant, creative, short and simple. Add an introductory and a conclusion section to the article. You can add also some other sections, when they fit the article\'s subject, like: benefits and practical tips, case studies, first had experience.Please ensure that the article is at least 1200 words in length and adheres to best SEO practices, including proper header tags (H1, H2, H3). The article will be automatically published on my WordPress site, as a post. Feel free to use a friendly, conversational tone and make the article as informative and engaging as possible while ensuring it remains factually accurate and well-researched.',
1903 + 'model' => AIMOGEN_DEFAULT_MODEL,
1904 + 'assistant_id' => '',
1905 + 'critical' => '0'
1906 + )
1907 + ],
1908 + [
1909 + 'identifier' => '3',
1910 + 'name' => 'Generate featured image',
1911 + 'type' => 'dalle_ai_image',
1912 + 'parameters' => array(
1913 + 'prompt' => 'Generate a high-resolution, visually compelling image that creatively interprets the theme encapsulated by this keyword: "%%keyword%%". The image should be versatile enough to fit various niches, from technology and lifestyle to nature and science. It should feature a central, eye-catching element that abstractly represents the topic, surrounded by relevant, subtler motifs that provide context and depth. The composition should be balanced and aesthetically pleasing, with a harmonious color palette that complements the mood of the title. The artwork should be suitable for use as a captivating header image for a blog post.',
1914 + 'model' => 'gpt-image-1',
1915 + 'image_size' => '1024x1024',
1916 + 'critical' => '0'
1917 + )
1918 + ],
1919 + [
1920 + 'identifier' => '4',
1921 + 'name' => 'Publish post',
1922 + 'type' => 'save_post',
1923 + 'parameters' => array(
1924 + 'post_title' => '%%ai_text_1%%',
1925 + 'post_content' => '%%ai_text_2%%',
1926 + 'featured_image' => '%%dalle_image_3%%',
1927 + 'critical' => '0'
1928 + )
1929 + ]
1930 + ]);
1931 + }
1932 + ?>