Completed
Pull Request — develop (#981)
by Naveen
02:13
created
src/admin/class-wordlift-admin-mappings-mockup-page.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 */
22 22
 	public function get_page_title() {
23 23
 
24
-		return __( 'Sync Mappings Mockup', 'wordlift' );
24
+		return __('Sync Mappings Mockup', 'wordlift');
25 25
 	}
26 26
 
27 27
 	/**
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public function get_menu_title() {
31 31
 
32
-		return __( 'Sync Mappings Mockup', 'wordlift' );
32
+		return __('Sync Mappings Mockup', 'wordlift');
33 33
 	}
34 34
 
35 35
 	/**
Please login to merge, or discard this patch.
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -15,44 +15,44 @@
 block discarded – undo
15 15
  * @since 3.20.0
16 16
  */
17 17
 class Wordlift_Admin_Mappings_Mockup_Page extends Wordlift_Admin_Page {
18
-	/**
19
-	 * {@inheritdoc}
20
-	 */
21
-	public function __construct() {
22
-		// do nothing, if this constructor is not overridden, duplicate menu entry
23
-		// created.
24
-	}
25
-
26
-	/**
27
-	 * {@inheritdoc}
28
-	 */
29
-	public function get_page_title() {
30
-
31
-		return __( 'Sync Mappings Mockup', 'wordlift' );
32
-	}
33
-
34
-	/**
35
-	 * {@inheritdoc}
36
-	 */
37
-	public function get_menu_title() {
38
-
39
-		return __( 'Sync Mappings Mockup', 'wordlift' );
40
-	}
41
-
42
-	/**
43
-	 * {@inheritdoc}
44
-	 */
45
-	public function get_menu_slug() {
46
-
47
-		return 'wl_mappings_mockup';
48
-	}
49
-
50
-	/**
51
-	 * {@inheritdoc}
52
-	 */
53
-	public function get_partial_name() {
54
-
55
-		return 'wordlift-admin-mappings-page-mockup.php';
56
-	}
18
+    /**
19
+     * {@inheritdoc}
20
+     */
21
+    public function __construct() {
22
+        // do nothing, if this constructor is not overridden, duplicate menu entry
23
+        // created.
24
+    }
25
+
26
+    /**
27
+     * {@inheritdoc}
28
+     */
29
+    public function get_page_title() {
30
+
31
+        return __( 'Sync Mappings Mockup', 'wordlift' );
32
+    }
33
+
34
+    /**
35
+     * {@inheritdoc}
36
+     */
37
+    public function get_menu_title() {
38
+
39
+        return __( 'Sync Mappings Mockup', 'wordlift' );
40
+    }
41
+
42
+    /**
43
+     * {@inheritdoc}
44
+     */
45
+    public function get_menu_slug() {
46
+
47
+        return 'wl_mappings_mockup';
48
+    }
49
+
50
+    /**
51
+     * {@inheritdoc}
52
+     */
53
+    public function get_partial_name() {
54
+
55
+        return 'wordlift-admin-mappings-page-mockup.php';
56
+    }
57 57
 
58 58
 }
Please login to merge, or discard this patch.
src/includes/class-wordlift.php 2 patches
Indentation   +1676 added lines, -1676 removed lines patch added patch discarded remove patch
@@ -28,1511 +28,1511 @@  discard block
 block discarded – undo
28 28
  */
29 29
 class Wordlift {
30 30
 
31
-	//<editor-fold desc="## FIELDS">
32
-
33
-	/**
34
-	 * The loader that's responsible for maintaining and registering all hooks that power
35
-	 * the plugin.
36
-	 *
37
-	 * @since    1.0.0
38
-	 * @access   protected
39
-	 * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
40
-	 */
41
-	protected $loader;
42
-
43
-	/**
44
-	 * The unique identifier of this plugin.
45
-	 *
46
-	 * @since    1.0.0
47
-	 * @access   protected
48
-	 * @var      string $plugin_name The string used to uniquely identify this plugin.
49
-	 */
50
-	protected $plugin_name;
51
-
52
-	/**
53
-	 * The current version of the plugin.
54
-	 *
55
-	 * @since    1.0.0
56
-	 * @access   protected
57
-	 * @var      string $version The current version of the plugin.
58
-	 */
59
-	protected $version;
60
-
61
-	/**
62
-	 * The {@link Wordlift_Tinymce_Adapter} instance.
63
-	 *
64
-	 * @since  3.12.0
65
-	 * @access protected
66
-	 * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
67
-	 */
68
-	protected $tinymce_adapter;
69
-
70
-	/**
71
-	 * The Thumbnail service.
72
-	 *
73
-	 * @since  3.1.5
74
-	 * @access private
75
-	 * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
76
-	 */
77
-	private $thumbnail_service;
78
-
79
-	/**
80
-	 * The UI service.
81
-	 *
82
-	 * @since  3.2.0
83
-	 * @access private
84
-	 * @var \Wordlift_UI_Service $ui_service The UI service.
85
-	 */
86
-	private $ui_service;
87
-
88
-	/**
89
-	 * The Schema service.
90
-	 *
91
-	 * @since  3.3.0
92
-	 * @access protected
93
-	 * @var \Wordlift_Schema_Service $schema_service The Schema service.
94
-	 */
95
-	protected $schema_service;
96
-
97
-	/**
98
-	 * The Entity service.
99
-	 *
100
-	 * @since  3.1.0
101
-	 * @access protected
102
-	 * @var \Wordlift_Entity_Service $entity_service The Entity service.
103
-	 */
104
-	protected $entity_service;
105
-
106
-	/**
107
-	 * The Topic Taxonomy service.
108
-	 *
109
-	 * @since  3.5.0
110
-	 * @access private
111
-	 * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
112
-	 */
113
-	private $topic_taxonomy_service;
114
-
115
-	/**
116
-	 * The Entity Types Taxonomy service.
117
-	 *
118
-	 * @since  3.18.0
119
-	 * @access private
120
-	 * @var \Wordlift_Entity_Type_Taxonomy_Service The Entity Types Taxonomy service.
121
-	 */
122
-	private $entity_types_taxonomy_service;
123
-
124
-	/**
125
-	 * The User service.
126
-	 *
127
-	 * @since  3.1.7
128
-	 * @access protected
129
-	 * @var \Wordlift_User_Service $user_service The User service.
130
-	 */
131
-	protected $user_service;
132
-
133
-	/**
134
-	 * The Timeline service.
135
-	 *
136
-	 * @since  3.1.0
137
-	 * @access private
138
-	 * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
139
-	 */
140
-	private $timeline_service;
141
-
142
-	/**
143
-	 * The Redirect service.
144
-	 *
145
-	 * @since  3.2.0
146
-	 * @access private
147
-	 * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
148
-	 */
149
-	private $redirect_service;
150
-
151
-	/**
152
-	 * The Notice service.
153
-	 *
154
-	 * @since  3.3.0
155
-	 * @access private
156
-	 * @var \Wordlift_Notice_Service $notice_service The Notice service.
157
-	 */
158
-	private $notice_service;
159
-
160
-	/**
161
-	 * The Entity list customization.
162
-	 *
163
-	 * @since  3.3.0
164
-	 * @access protected
165
-	 * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
166
-	 */
167
-	protected $entity_list_service;
168
-
169
-	/**
170
-	 * The Entity Types Taxonomy Walker.
171
-	 *
172
-	 * @since  3.1.0
173
-	 * @access private
174
-	 * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
175
-	 */
176
-	private $entity_types_taxonomy_walker;
177
-
178
-	/**
179
-	 * The ShareThis service.
180
-	 *
181
-	 * @since  3.2.0
182
-	 * @access private
183
-	 * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
184
-	 */
185
-	private $sharethis_service;
186
-
187
-	/**
188
-	 * The PrimaShop adapter.
189
-	 *
190
-	 * @since  3.2.3
191
-	 * @access private
192
-	 * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
193
-	 */
194
-	private $primashop_adapter;
195
-
196
-	/**
197
-	 * The WordLift Dashboard adapter.
198
-	 *
199
-	 * @since  3.4.0
200
-	 * @access private
201
-	 * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
202
-	 */
203
-	private $dashboard_service;
204
-
205
-	/**
206
-	 * The entity type service.
207
-	 *
208
-	 * @since  3.6.0
209
-	 * @access private
210
-	 * @var \Wordlift_Entity_Post_Type_Service
211
-	 */
212
-	private $entity_post_type_service;
213
-
214
-	/**
215
-	 * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
216
-	 *
217
-	 * @since  3.6.0
218
-	 * @access private
219
-	 * @var \Wordlift_Entity_Link_Service $entity_link_service The {@link Wordlift_Entity_Link_Service} instance.
220
-	 */
221
-	private $entity_link_service;
222
-
223
-	/**
224
-	 * A {@link Wordlift_Sparql_Service} instance.
225
-	 *
226
-	 * @since    3.6.0
227
-	 * @access   protected
228
-	 * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
229
-	 */
230
-	protected $sparql_service;
231
-
232
-	/**
233
-	 * A {@link Wordlift_Import_Service} instance.
234
-	 *
235
-	 * @since  3.6.0
236
-	 * @access private
237
-	 * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
238
-	 */
239
-	private $import_service;
240
-
241
-	/**
242
-	 * A {@link Wordlift_Rebuild_Service} instance.
243
-	 *
244
-	 * @since  3.6.0
245
-	 * @access private
246
-	 * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
247
-	 */
248
-	private $rebuild_service;
249
-
250
-	/**
251
-	 * A {@link Wordlift_Jsonld_Service} instance.
252
-	 *
253
-	 * @since  3.7.0
254
-	 * @access protected
255
-	 * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
256
-	 */
257
-	protected $jsonld_service;
258
-
259
-	/**
260
-	 * A {@link Wordlift_Website_Jsonld_Converter} instance.
261
-	 *
262
-	 * @since  3.14.0
263
-	 * @access protected
264
-	 * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
265
-	 */
266
-	protected $jsonld_website_converter;
267
-
268
-	/**
269
-	 * A {@link Wordlift_Property_Factory} instance.
270
-	 *
271
-	 * @since  3.7.0
272
-	 * @access private
273
-	 * @var \Wordlift_Property_Factory $property_factory
274
-	 */
275
-	private $property_factory;
276
-
277
-	/**
278
-	 * The 'Download Your Data' page.
279
-	 *
280
-	 * @since  3.6.0
281
-	 * @access private
282
-	 * @var \Wordlift_Admin_Download_Your_Data_Page $download_your_data_page The 'Download Your Data' page.
283
-	 */
284
-	private $download_your_data_page;
285
-
286
-	/**
287
-	 * The 'Sync Mapping Mockup' page.
288
-	 *
289
-	 * @since  3.6.0
290
-	 * @access private
291
-	 * @var \Wordlift_Admin_Mappings_Mockup_Page $sync_mappings_mockup_page The sync mappings mockup page.
292
-	 */
293
-	private $sync_mappings_mockup_page;
294
-	/**
295
-	 * The 'WordLift Settings' page.
296
-	 *
297
-	 * @since  3.11.0
298
-	 * @access protected
299
-	 * @var \Wordlift_Admin_Settings_Page $settings_page The 'WordLift Settings' page.
300
-	 */
301
-	protected $settings_page;
302
-
303
-	/**
304
-	 * The 'WordLift Batch analysis' page.
305
-	 *
306
-	 * @since  3.14.0
307
-	 * @access protected
308
-	 * @var \Wordlift_Batch_Analysis_Page $sbatch_analysis_page The 'WordLift batcch analysis' page.
309
-	 */
310
-	protected $batch_analysis_page;
311
-
312
-	/**
313
-	 * The install wizard page.
314
-	 *
315
-	 * @since  3.9.0
316
-	 * @access private
317
-	 * @var \Wordlift_Admin_Setup $admin_setup The Install wizard.
318
-	 */
319
-	private $admin_setup;
320
-
321
-	/**
322
-	 * The Content Filter Service hooks up to the 'the_content' filter and provides
323
-	 * linking of entities to their pages.
324
-	 *
325
-	 * @since  3.8.0
326
-	 * @access private
327
-	 * @var \Wordlift_Content_Filter_Service $content_filter_service A {@link Wordlift_Content_Filter_Service} instance.
328
-	 */
329
-	private $content_filter_service;
330
-
331
-	/**
332
-	 * A {@link Wordlift_Key_Validation_Service} instance.
333
-	 *
334
-	 * @since  3.9.0
335
-	 * @access private
336
-	 * @var Wordlift_Key_Validation_Service $key_validation_service A {@link Wordlift_Key_Validation_Service} instance.
337
-	 */
338
-	private $key_validation_service;
339
-
340
-	/**
341
-	 * A {@link Wordlift_Rating_Service} instance.
342
-	 *
343
-	 * @since  3.10.0
344
-	 * @access private
345
-	 * @var \Wordlift_Rating_Service $rating_service A {@link Wordlift_Rating_Service} instance.
346
-	 */
347
-	private $rating_service;
348
-
349
-	/**
350
-	 * A {@link Wordlift_Post_To_Jsonld_Converter} instance.
351
-	 *
352
-	 * @since  3.10.0
353
-	 * @access protected
354
-	 * @var \Wordlift_Post_To_Jsonld_Converter $post_to_jsonld_converter A {@link Wordlift_Post_To_Jsonld_Converter} instance.
355
-	 */
356
-	protected $post_to_jsonld_converter;
357
-
358
-	/**
359
-	 * A {@link Wordlift_Configuration_Service} instance.
360
-	 *
361
-	 * @since  3.10.0
362
-	 * @access protected
363
-	 * @var \Wordlift_Configuration_Service $configuration_service A {@link Wordlift_Configuration_Service} instance.
364
-	 */
365
-	protected $configuration_service;
366
-
367
-	/**
368
-	 * A {@link Wordlift_Install_Service} instance.
369
-	 *
370
-	 * @since  3.18.0
371
-	 * @access protected
372
-	 * @var \Wordlift_Install_Service $install_service A {@link Wordlift_Install_Service} instance.
373
-	 */
374
-	protected $install_service;
375
-
376
-	/**
377
-	 * A {@link Wordlift_Entity_Type_Service} instance.
378
-	 *
379
-	 * @since  3.10.0
380
-	 * @access protected
381
-	 * @var \Wordlift_Entity_Type_Service $entity_type_service A {@link Wordlift_Entity_Type_Service} instance.
382
-	 */
383
-	protected $entity_type_service;
384
-
385
-	/**
386
-	 * A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
387
-	 *
388
-	 * @since  3.10.0
389
-	 * @access protected
390
-	 * @var \Wordlift_Entity_Post_To_Jsonld_Converter $entity_post_to_jsonld_converter A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
391
-	 */
392
-	protected $entity_post_to_jsonld_converter;
393
-
394
-	/**
395
-	 * A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
396
-	 *
397
-	 * @since  3.10.0
398
-	 * @access protected
399
-	 * @var \Wordlift_Postid_To_Jsonld_Converter $postid_to_jsonld_converter A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
400
-	 */
401
-	protected $postid_to_jsonld_converter;
402
-
403
-	/**
404
-	 * The {@link Wordlift_Admin_Status_Page} class.
405
-	 *
406
-	 * @since  3.9.8
407
-	 * @access private
408
-	 * @var \Wordlift_Admin_Status_Page $status_page The {@link Wordlift_Admin_Status_Page} class.
409
-	 */
410
-	private $status_page;
411
-
412
-	/**
413
-	 * The {@link Wordlift_Category_Taxonomy_Service} instance.
414
-	 *
415
-	 * @since  3.11.0
416
-	 * @access protected
417
-	 * @var \Wordlift_Category_Taxonomy_Service $category_taxonomy_service The {@link Wordlift_Category_Taxonomy_Service} instance.
418
-	 */
419
-	protected $category_taxonomy_service;
420
-
421
-	/**
422
-	 * The {@link Wordlift_Entity_Page_Service} instance.
423
-	 *
424
-	 * @since  3.11.0
425
-	 * @access protected
426
-	 * @var \Wordlift_Entity_Page_Service $entity_page_service The {@link Wordlift_Entity_Page_Service} instance.
427
-	 */
428
-	protected $entity_page_service;
429
-
430
-	/**
431
-	 * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
432
-	 *
433
-	 * @since  3.11.0
434
-	 * @access protected
435
-	 * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
436
-	 */
437
-	protected $settings_page_action_link;
438
-
439
-	/**
440
-	 * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
441
-	 *
442
-	 * @since  3.11.0
443
-	 * @access protected
444
-	 * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
445
-	 */
446
-	protected $analytics_settings_page_action_link;
447
-
448
-	/**
449
-	 * The {@link Wordlift_Analytics_Connect} class.
450
-	 *
451
-	 * @since  3.11.0
452
-	 * @access protected
453
-	 * @var \Wordlift_Analytics_Connect $analytics_connect The {@link Wordlift_Analytics_Connect} class.
454
-	 */
455
-	protected $analytics_connect;
456
-
457
-	/**
458
-	 * The {@link Wordlift_Publisher_Ajax_Adapter} instance.
459
-	 *
460
-	 * @since  3.11.0
461
-	 * @access protected
462
-	 * @var \Wordlift_Publisher_Ajax_Adapter $publisher_ajax_adapter The {@link Wordlift_Publisher_Ajax_Adapter} instance.
463
-	 */
464
-	protected $publisher_ajax_adapter;
465
-
466
-	/**
467
-	 * The {@link Wordlift_Admin_Input_Element} element renderer.
468
-	 *
469
-	 * @since  3.11.0
470
-	 * @access protected
471
-	 * @var \Wordlift_Admin_Input_Element $input_element The {@link Wordlift_Admin_Input_Element} element renderer.
472
-	 */
473
-	protected $input_element;
474
-
475
-	/**
476
-	 * The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
477
-	 *
478
-	 * @since  3.13.0
479
-	 * @access protected
480
-	 * @var \Wordlift_Admin_Radio_Input_Element $radio_input_element The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
481
-	 */
482
-	protected $radio_input_element;
483
-
484
-	/**
485
-	 * The {@link Wordlift_Admin_Language_Select_Element} element renderer.
486
-	 *
487
-	 * @since  3.11.0
488
-	 * @access protected
489
-	 * @var \Wordlift_Admin_Language_Select_Element $language_select_element The {@link Wordlift_Admin_Language_Select_Element} element renderer.
490
-	 */
491
-	protected $language_select_element;
492
-
493
-	/**
494
-	 * The {@link Wordlift_Admin_Country_Select_Element} element renderer.
495
-	 *
496
-	 * @since  3.18.0
497
-	 * @access protected
498
-	 * @var \Wordlift_Admin_Country_Select_Element $country_select_element The {@link Wordlift_Admin_Country_Select_Element} element renderer.
499
-	 */
500
-	protected $country_select_element;
501
-
502
-	/**
503
-	 * The {@link Wordlift_Admin_Publisher_Element} element renderer.
504
-	 *
505
-	 * @since  3.11.0
506
-	 * @access protected
507
-	 * @var \Wordlift_Admin_Publisher_Element $publisher_element The {@link Wordlift_Admin_Publisher_Element} element renderer.
508
-	 */
509
-	protected $publisher_element;
510
-
511
-	/**
512
-	 * The {@link Wordlift_Admin_Select2_Element} element renderer.
513
-	 *
514
-	 * @since  3.11.0
515
-	 * @access protected
516
-	 * @var \Wordlift_Admin_Select2_Element $select2_element The {@link Wordlift_Admin_Select2_Element} element renderer.
517
-	 */
518
-	protected $select2_element;
519
-
520
-	/**
521
-	 * The controller for the entity type list admin page
522
-	 *
523
-	 * @since  3.11.0
524
-	 * @access private
525
-	 * @var \Wordlift_Admin_Entity_Taxonomy_List_Page $entity_type_admin_page The {@link Wordlift_Admin_Entity_Taxonomy_List_Page} class.
526
-	 */
527
-	private $entity_type_admin_page;
528
-
529
-	/**
530
-	 * The controller for the entity type settings admin page
531
-	 *
532
-	 * @since  3.11.0
533
-	 * @access private
534
-	 * @var \Wordlift_Admin_Entity_Type_Settings $entity_type_settings_admin_page The {@link Wordlift_Admin_Entity_Type_Settings} class.
535
-	 */
536
-	private $entity_type_settings_admin_page;
537
-
538
-	/**
539
-	 * The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
540
-	 *
541
-	 * @since  3.11.0
542
-	 * @access protected
543
-	 * @var \Wordlift_Related_Entities_Cloud_Widget $related_entities_cloud_widget The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
544
-	 */
545
-	protected $related_entities_cloud_widget;
546
-
547
-	/**
548
-	 * The {@link Wordlift_Admin_Author_Element} instance.
549
-	 *
550
-	 * @since  3.14.0
551
-	 * @access protected
552
-	 * @var \Wordlift_Admin_Author_Element $author_element The {@link Wordlift_Admin_Author_Element} instance.
553
-	 */
554
-	protected $author_element;
555
-
556
-	/**
557
-	 * The {@link Wordlift_Batch_Analysis_Service} instance.
558
-	 *
559
-	 * @since  3.14.0
560
-	 * @access protected
561
-	 * @var \Wordlift_Batch_Analysis_Service $batch_analysis_service The {@link Wordlift_Batch_Analysis_Service} instance.
562
-	 */
563
-	protected $batch_analysis_service;
564
-
565
-	/**
566
-	 * The {@link Wordlift_Sample_Data_Service} instance.
567
-	 *
568
-	 * @since  3.12.0
569
-	 * @access protected
570
-	 * @var \Wordlift_Sample_Data_Service $sample_data_service The {@link Wordlift_Sample_Data_Service} instance.
571
-	 */
572
-	protected $sample_data_service;
573
-
574
-	/**
575
-	 * The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
576
-	 *
577
-	 * @since  3.12.0
578
-	 * @access protected
579
-	 * @var \Wordlift_Sample_Data_Ajax_Adapter $sample_data_ajax_adapter The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
580
-	 */
581
-	protected $sample_data_ajax_adapter;
582
-
583
-	/**
584
-	 * The {@link Wordlift_Batch_Analysis_Adapter} instance.
585
-	 *
586
-	 * @since  3.14.2
587
-	 * @access protected
588
-	 * @var \Wordlift_Batch_Analysis_Adapter $batch_analysis_adapter The {@link Wordlift_Batch_Analysis_Adapter} instance.
589
-	 */
590
-	private $batch_analysis_adapter;
591
-
592
-	/**
593
-	 * The {@link Wordlift_Relation_Rebuild_Service} instance.
594
-	 *
595
-	 * @since  3.14.3
596
-	 * @access private
597
-	 * @var \Wordlift_Relation_Rebuild_Service $relation_rebuild_service The {@link Wordlift_Relation_Rebuild_Service} instance.
598
-	 */
599
-	private $relation_rebuild_service;
600
-
601
-	/**
602
-	 * The {@link Wordlift_Relation_Rebuild_Adapter} instance.
603
-	 *
604
-	 * @since  3.14.3
605
-	 * @access private
606
-	 * @var \Wordlift_Relation_Rebuild_Adapter $relation_rebuild_adapter The {@link Wordlift_Relation_Rebuild_Adapter} instance.
607
-	 */
608
-	private $relation_rebuild_adapter;
609
-
610
-	/**
611
-	 * The {@link Wordlift_Reference_Rebuild_Service} instance.
612
-	 *
613
-	 * @since  3.18.0
614
-	 * @access private
615
-	 * @var \Wordlift_Reference_Rebuild_Service $reference_rebuild_service The {@link Wordlift_Reference_Rebuild_Service} instance.
616
-	 */
617
-	private $reference_rebuild_service;
618
-
619
-	/**
620
-	 * The {@link Wordlift_Google_Analytics_Export_Service} instance.
621
-	 *
622
-	 * @since  3.16.0
623
-	 * @access protected
624
-	 * @var \Wordlift_Google_Analytics_Export_Service $google_analytics_export_service The {@link Wordlift_Google_Analytics_Export_Service} instance.
625
-	 */
626
-	protected $google_analytics_export_service;
627
-
628
-	/**
629
-	 * {@link Wordlift}'s singleton instance.
630
-	 *
631
-	 * @since  3.15.0
632
-	 * @access protected
633
-	 * @var \Wordlift_Entity_Type_Adapter $entity_type_adapter The {@link Wordlift_Entity_Type_Adapter} instance.
634
-	 */
635
-	protected $entity_type_adapter;
636
-
637
-	/**
638
-	 * The {@link Wordlift_Linked_Data_Service} instance.
639
-	 *
640
-	 * @since  3.15.0
641
-	 * @access protected
642
-	 * @var \Wordlift_Linked_Data_Service $linked_data_service The {@link Wordlift_Linked_Data_Service} instance.
643
-	 */
644
-	protected $linked_data_service;
645
-
646
-	/**
647
-	 * The {@link Wordlift_Storage_Factory} instance.
648
-	 *
649
-	 * @since  3.15.0
650
-	 * @access protected
651
-	 * @var \Wordlift_Storage_Factory $storage_factory The {@link Wordlift_Storage_Factory} instance.
652
-	 */
653
-	protected $storage_factory;
654
-
655
-	/**
656
-	 * The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
657
-	 *
658
-	 * @since  3.15.0
659
-	 * @access protected
660
-	 * @var \Wordlift_Sparql_Tuple_Rendition_Factory $rendition_factory The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
661
-	 */
662
-	protected $rendition_factory;
663
-
664
-	/**
665
-	 * The {@link Wordlift_Autocomplete_Service} instance.
666
-	 *
667
-	 * @since  3.15.0
668
-	 * @access private
669
-	 * @var \Wordlift_Autocomplete_Service $autocomplete_service The {@link Wordlift_Autocomplete_Service} instance.
670
-	 */
671
-	private $autocomplete_service;
672
-
673
-	/**
674
-	 * The {@link Wordlift_Autocomplete_Adapter} instance.
675
-	 *
676
-	 * @since  3.15.0
677
-	 * @access private
678
-	 * @var \Wordlift_Autocomplete_Adapter $autocomplete_adapter The {@link Wordlift_Autocomplete_Adapter} instance.
679
-	 */
680
-	private $autocomplete_adapter;
681
-
682
-	/**
683
-	 * The {@link Wordlift_Relation_Service} instance.
684
-	 *
685
-	 * @since  3.15.0
686
-	 * @access protected
687
-	 * @var \Wordlift_Relation_Service $relation_service The {@link Wordlift_Relation_Service} instance.
688
-	 */
689
-	protected $relation_service;
690
-
691
-	/**
692
-	 * The {@link Wordlift_Cached_Post_Converter} instance.
693
-	 *
694
-	 * @since  3.16.0
695
-	 * @access protected
696
-	 * @var  \Wordlift_Cached_Post_Converter $cached_postid_to_jsonld_converter The {@link Wordlift_Cached_Post_Converter} instance.
697
-	 *
698
-	 */
699
-	protected $cached_postid_to_jsonld_converter;
700
-
701
-	/**
702
-	 * The {@link Wordlift_File_Cache_Service} instance.
703
-	 *
704
-	 * @since  3.16.0
705
-	 * @access protected
706
-	 * @var \Wordlift_File_Cache_Service $file_cache_service The {@link Wordlift_File_Cache_Service} instance.
707
-	 */
708
-	protected $file_cache_service;
709
-
710
-	/**
711
-	 * The {@link Wordlift_Entity_Uri_Service} instance.
712
-	 *
713
-	 * @since  3.16.3
714
-	 * @access protected
715
-	 * @var \Wordlift_Entity_Uri_Service $entity_uri_service The {@link Wordlift_Entity_Uri_Service} instance.
716
-	 */
717
-	protected $entity_uri_service;
718
-
719
-	/**
720
-	 * The {@link Wordlift_Publisher_Service} instance.
721
-	 *
722
-	 * @since  3.19.0
723
-	 * @access protected
724
-	 * @var \Wordlift_Publisher_Service $publisher_service The {@link Wordlift_Publisher_Service} instance.
725
-	 */
726
-	protected $publisher_service;
727
-
728
-	/**
729
-	 * {@link Wordlift}'s singleton instance.
730
-	 *
731
-	 * @since  3.11.2
732
-	 * @access private
733
-	 * @var Wordlift $instance {@link Wordlift}'s singleton instance.
734
-	 */
735
-	private static $instance;
736
-
737
-	//</editor-fold>
738
-
739
-	/**
740
-	 * Define the core functionality of the plugin.
741
-	 *
742
-	 * Set the plugin name and the plugin version that can be used throughout the plugin.
743
-	 * Load the dependencies, define the locale, and set the hooks for the admin area and
744
-	 * the public-facing side of the site.
745
-	 *
746
-	 * @since    1.0.0
747
-	 */
748
-	public function __construct() {
749
-
750
-		self::$instance = $this;
751
-
752
-		$this->plugin_name = 'wordlift';
753
-		$this->version     = '3.23.0-dev';
754
-		$this->load_dependencies();
755
-		$this->set_locale();
756
-		$this->define_admin_hooks();
757
-		$this->define_public_hooks();
758
-
759
-		// If we're in `WP_CLI` load the related files.
760
-		if ( class_exists( 'WP_CLI' ) ) {
761
-			$this->load_cli_dependencies();
762
-		}
763
-
764
-	}
765
-
766
-	/**
767
-	 * Get the singleton instance.
768
-	 *
769
-	 * @return Wordlift The {@link Wordlift} singleton instance.
770
-	 * @since 3.11.2
771
-	 *
772
-	 */
773
-	public static function get_instance() {
774
-
775
-		return self::$instance;
776
-	}
777
-
778
-	/**
779
-	 * Load the required dependencies for this plugin.
780
-	 *
781
-	 * Include the following files that make up the plugin:
782
-	 *
783
-	 * - Wordlift_Loader. Orchestrates the hooks of the plugin.
784
-	 * - Wordlift_i18n. Defines internationalization functionality.
785
-	 * - Wordlift_Admin. Defines all hooks for the admin area.
786
-	 * - Wordlift_Public. Defines all hooks for the public side of the site.
787
-	 *
788
-	 * Create an instance of the loader which will be used to register the hooks
789
-	 * with WordPress.
790
-	 *
791
-	 * @since    1.0.0
792
-	 * @access   private
793
-	 */
794
-	private function load_dependencies() {
795
-
796
-		/**
797
-		 * The class responsible for orchestrating the actions and filters of the
798
-		 * core plugin.
799
-		 */
800
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
801
-
802
-		// The class responsible for plugin uninstall.
803
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-deactivator-feedback.php';
804
-
805
-		/**
806
-		 * The class responsible for defining internationalization functionality
807
-		 * of the plugin.
808
-		 */
809
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
810
-
811
-		/**
812
-		 * WordLift's supported languages.
813
-		 */
814
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
815
-
816
-		/**
817
-		 * WordLift's supported countries.
818
-		 */
819
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-countries.php';
820
-
821
-		/**
822
-		 * Provide support functions to sanitize data.
823
-		 */
824
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
825
-
826
-		/** Services. */
827
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
828
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
829
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
830
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
831
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
832
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
833
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
834
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
835
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
836
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-image-service.php';
837
-
838
-		/**
839
-		 * The Query builder.
840
-		 */
841
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
842
-
843
-		/**
844
-		 * The Schema service.
845
-		 */
846
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
847
-
848
-		/**
849
-		 * The schema:url property service.
850
-		 */
851
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
852
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
853
-
854
-		/**
855
-		 * The UI service.
856
-		 */
857
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
858
-
859
-		/**
860
-		 * The Thumbnail service.
861
-		 */
862
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
863
-
864
-		/**
865
-		 * The Entity Types Taxonomy service.
866
-		 */
867
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
868
-
869
-		/**
870
-		 * The Entity service.
871
-		 */
872
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
873
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
874
-
875
-		// Add the entity rating service.
876
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
877
-
878
-		/**
879
-		 * The User service.
880
-		 */
881
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
882
-
883
-		/**
884
-		 * The Timeline service.
885
-		 */
886
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
887
-
888
-		/**
889
-		 * The Topic Taxonomy service.
890
-		 */
891
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
892
-
893
-		/**
894
-		 * The SPARQL service.
895
-		 */
896
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
897
-
898
-		/**
899
-		 * The WordLift import service.
900
-		 */
901
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
902
-
903
-		/**
904
-		 * The WordLift URI service.
905
-		 */
906
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
907
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
908
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
909
-
910
-		/**
911
-		 * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
912
-		 */
913
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-listable.php';
914
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-rebuild-service.php';
915
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-reference-rebuild-service.php';
916
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-service.php';
917
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
918
-
919
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
920
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
921
-
922
-		/**
923
-		 * Load the converters.
924
-		 */
925
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
926
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
927
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
928
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
929
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
930
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
931
-
932
-		/**
933
-		 * Load cache-related files.
934
-		 */
935
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
936
-
937
-		/**
938
-		 * Load the content filter.
939
-		 */
940
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
941
-
942
-		/*
31
+    //<editor-fold desc="## FIELDS">
32
+
33
+    /**
34
+     * The loader that's responsible for maintaining and registering all hooks that power
35
+     * the plugin.
36
+     *
37
+     * @since    1.0.0
38
+     * @access   protected
39
+     * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
40
+     */
41
+    protected $loader;
42
+
43
+    /**
44
+     * The unique identifier of this plugin.
45
+     *
46
+     * @since    1.0.0
47
+     * @access   protected
48
+     * @var      string $plugin_name The string used to uniquely identify this plugin.
49
+     */
50
+    protected $plugin_name;
51
+
52
+    /**
53
+     * The current version of the plugin.
54
+     *
55
+     * @since    1.0.0
56
+     * @access   protected
57
+     * @var      string $version The current version of the plugin.
58
+     */
59
+    protected $version;
60
+
61
+    /**
62
+     * The {@link Wordlift_Tinymce_Adapter} instance.
63
+     *
64
+     * @since  3.12.0
65
+     * @access protected
66
+     * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
67
+     */
68
+    protected $tinymce_adapter;
69
+
70
+    /**
71
+     * The Thumbnail service.
72
+     *
73
+     * @since  3.1.5
74
+     * @access private
75
+     * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
76
+     */
77
+    private $thumbnail_service;
78
+
79
+    /**
80
+     * The UI service.
81
+     *
82
+     * @since  3.2.0
83
+     * @access private
84
+     * @var \Wordlift_UI_Service $ui_service The UI service.
85
+     */
86
+    private $ui_service;
87
+
88
+    /**
89
+     * The Schema service.
90
+     *
91
+     * @since  3.3.0
92
+     * @access protected
93
+     * @var \Wordlift_Schema_Service $schema_service The Schema service.
94
+     */
95
+    protected $schema_service;
96
+
97
+    /**
98
+     * The Entity service.
99
+     *
100
+     * @since  3.1.0
101
+     * @access protected
102
+     * @var \Wordlift_Entity_Service $entity_service The Entity service.
103
+     */
104
+    protected $entity_service;
105
+
106
+    /**
107
+     * The Topic Taxonomy service.
108
+     *
109
+     * @since  3.5.0
110
+     * @access private
111
+     * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
112
+     */
113
+    private $topic_taxonomy_service;
114
+
115
+    /**
116
+     * The Entity Types Taxonomy service.
117
+     *
118
+     * @since  3.18.0
119
+     * @access private
120
+     * @var \Wordlift_Entity_Type_Taxonomy_Service The Entity Types Taxonomy service.
121
+     */
122
+    private $entity_types_taxonomy_service;
123
+
124
+    /**
125
+     * The User service.
126
+     *
127
+     * @since  3.1.7
128
+     * @access protected
129
+     * @var \Wordlift_User_Service $user_service The User service.
130
+     */
131
+    protected $user_service;
132
+
133
+    /**
134
+     * The Timeline service.
135
+     *
136
+     * @since  3.1.0
137
+     * @access private
138
+     * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
139
+     */
140
+    private $timeline_service;
141
+
142
+    /**
143
+     * The Redirect service.
144
+     *
145
+     * @since  3.2.0
146
+     * @access private
147
+     * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
148
+     */
149
+    private $redirect_service;
150
+
151
+    /**
152
+     * The Notice service.
153
+     *
154
+     * @since  3.3.0
155
+     * @access private
156
+     * @var \Wordlift_Notice_Service $notice_service The Notice service.
157
+     */
158
+    private $notice_service;
159
+
160
+    /**
161
+     * The Entity list customization.
162
+     *
163
+     * @since  3.3.0
164
+     * @access protected
165
+     * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
166
+     */
167
+    protected $entity_list_service;
168
+
169
+    /**
170
+     * The Entity Types Taxonomy Walker.
171
+     *
172
+     * @since  3.1.0
173
+     * @access private
174
+     * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
175
+     */
176
+    private $entity_types_taxonomy_walker;
177
+
178
+    /**
179
+     * The ShareThis service.
180
+     *
181
+     * @since  3.2.0
182
+     * @access private
183
+     * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
184
+     */
185
+    private $sharethis_service;
186
+
187
+    /**
188
+     * The PrimaShop adapter.
189
+     *
190
+     * @since  3.2.3
191
+     * @access private
192
+     * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
193
+     */
194
+    private $primashop_adapter;
195
+
196
+    /**
197
+     * The WordLift Dashboard adapter.
198
+     *
199
+     * @since  3.4.0
200
+     * @access private
201
+     * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
202
+     */
203
+    private $dashboard_service;
204
+
205
+    /**
206
+     * The entity type service.
207
+     *
208
+     * @since  3.6.0
209
+     * @access private
210
+     * @var \Wordlift_Entity_Post_Type_Service
211
+     */
212
+    private $entity_post_type_service;
213
+
214
+    /**
215
+     * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
216
+     *
217
+     * @since  3.6.0
218
+     * @access private
219
+     * @var \Wordlift_Entity_Link_Service $entity_link_service The {@link Wordlift_Entity_Link_Service} instance.
220
+     */
221
+    private $entity_link_service;
222
+
223
+    /**
224
+     * A {@link Wordlift_Sparql_Service} instance.
225
+     *
226
+     * @since    3.6.0
227
+     * @access   protected
228
+     * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
229
+     */
230
+    protected $sparql_service;
231
+
232
+    /**
233
+     * A {@link Wordlift_Import_Service} instance.
234
+     *
235
+     * @since  3.6.0
236
+     * @access private
237
+     * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
238
+     */
239
+    private $import_service;
240
+
241
+    /**
242
+     * A {@link Wordlift_Rebuild_Service} instance.
243
+     *
244
+     * @since  3.6.0
245
+     * @access private
246
+     * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
247
+     */
248
+    private $rebuild_service;
249
+
250
+    /**
251
+     * A {@link Wordlift_Jsonld_Service} instance.
252
+     *
253
+     * @since  3.7.0
254
+     * @access protected
255
+     * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
256
+     */
257
+    protected $jsonld_service;
258
+
259
+    /**
260
+     * A {@link Wordlift_Website_Jsonld_Converter} instance.
261
+     *
262
+     * @since  3.14.0
263
+     * @access protected
264
+     * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
265
+     */
266
+    protected $jsonld_website_converter;
267
+
268
+    /**
269
+     * A {@link Wordlift_Property_Factory} instance.
270
+     *
271
+     * @since  3.7.0
272
+     * @access private
273
+     * @var \Wordlift_Property_Factory $property_factory
274
+     */
275
+    private $property_factory;
276
+
277
+    /**
278
+     * The 'Download Your Data' page.
279
+     *
280
+     * @since  3.6.0
281
+     * @access private
282
+     * @var \Wordlift_Admin_Download_Your_Data_Page $download_your_data_page The 'Download Your Data' page.
283
+     */
284
+    private $download_your_data_page;
285
+
286
+    /**
287
+     * The 'Sync Mapping Mockup' page.
288
+     *
289
+     * @since  3.6.0
290
+     * @access private
291
+     * @var \Wordlift_Admin_Mappings_Mockup_Page $sync_mappings_mockup_page The sync mappings mockup page.
292
+     */
293
+    private $sync_mappings_mockup_page;
294
+    /**
295
+     * The 'WordLift Settings' page.
296
+     *
297
+     * @since  3.11.0
298
+     * @access protected
299
+     * @var \Wordlift_Admin_Settings_Page $settings_page The 'WordLift Settings' page.
300
+     */
301
+    protected $settings_page;
302
+
303
+    /**
304
+     * The 'WordLift Batch analysis' page.
305
+     *
306
+     * @since  3.14.0
307
+     * @access protected
308
+     * @var \Wordlift_Batch_Analysis_Page $sbatch_analysis_page The 'WordLift batcch analysis' page.
309
+     */
310
+    protected $batch_analysis_page;
311
+
312
+    /**
313
+     * The install wizard page.
314
+     *
315
+     * @since  3.9.0
316
+     * @access private
317
+     * @var \Wordlift_Admin_Setup $admin_setup The Install wizard.
318
+     */
319
+    private $admin_setup;
320
+
321
+    /**
322
+     * The Content Filter Service hooks up to the 'the_content' filter and provides
323
+     * linking of entities to their pages.
324
+     *
325
+     * @since  3.8.0
326
+     * @access private
327
+     * @var \Wordlift_Content_Filter_Service $content_filter_service A {@link Wordlift_Content_Filter_Service} instance.
328
+     */
329
+    private $content_filter_service;
330
+
331
+    /**
332
+     * A {@link Wordlift_Key_Validation_Service} instance.
333
+     *
334
+     * @since  3.9.0
335
+     * @access private
336
+     * @var Wordlift_Key_Validation_Service $key_validation_service A {@link Wordlift_Key_Validation_Service} instance.
337
+     */
338
+    private $key_validation_service;
339
+
340
+    /**
341
+     * A {@link Wordlift_Rating_Service} instance.
342
+     *
343
+     * @since  3.10.0
344
+     * @access private
345
+     * @var \Wordlift_Rating_Service $rating_service A {@link Wordlift_Rating_Service} instance.
346
+     */
347
+    private $rating_service;
348
+
349
+    /**
350
+     * A {@link Wordlift_Post_To_Jsonld_Converter} instance.
351
+     *
352
+     * @since  3.10.0
353
+     * @access protected
354
+     * @var \Wordlift_Post_To_Jsonld_Converter $post_to_jsonld_converter A {@link Wordlift_Post_To_Jsonld_Converter} instance.
355
+     */
356
+    protected $post_to_jsonld_converter;
357
+
358
+    /**
359
+     * A {@link Wordlift_Configuration_Service} instance.
360
+     *
361
+     * @since  3.10.0
362
+     * @access protected
363
+     * @var \Wordlift_Configuration_Service $configuration_service A {@link Wordlift_Configuration_Service} instance.
364
+     */
365
+    protected $configuration_service;
366
+
367
+    /**
368
+     * A {@link Wordlift_Install_Service} instance.
369
+     *
370
+     * @since  3.18.0
371
+     * @access protected
372
+     * @var \Wordlift_Install_Service $install_service A {@link Wordlift_Install_Service} instance.
373
+     */
374
+    protected $install_service;
375
+
376
+    /**
377
+     * A {@link Wordlift_Entity_Type_Service} instance.
378
+     *
379
+     * @since  3.10.0
380
+     * @access protected
381
+     * @var \Wordlift_Entity_Type_Service $entity_type_service A {@link Wordlift_Entity_Type_Service} instance.
382
+     */
383
+    protected $entity_type_service;
384
+
385
+    /**
386
+     * A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
387
+     *
388
+     * @since  3.10.0
389
+     * @access protected
390
+     * @var \Wordlift_Entity_Post_To_Jsonld_Converter $entity_post_to_jsonld_converter A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
391
+     */
392
+    protected $entity_post_to_jsonld_converter;
393
+
394
+    /**
395
+     * A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
396
+     *
397
+     * @since  3.10.0
398
+     * @access protected
399
+     * @var \Wordlift_Postid_To_Jsonld_Converter $postid_to_jsonld_converter A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
400
+     */
401
+    protected $postid_to_jsonld_converter;
402
+
403
+    /**
404
+     * The {@link Wordlift_Admin_Status_Page} class.
405
+     *
406
+     * @since  3.9.8
407
+     * @access private
408
+     * @var \Wordlift_Admin_Status_Page $status_page The {@link Wordlift_Admin_Status_Page} class.
409
+     */
410
+    private $status_page;
411
+
412
+    /**
413
+     * The {@link Wordlift_Category_Taxonomy_Service} instance.
414
+     *
415
+     * @since  3.11.0
416
+     * @access protected
417
+     * @var \Wordlift_Category_Taxonomy_Service $category_taxonomy_service The {@link Wordlift_Category_Taxonomy_Service} instance.
418
+     */
419
+    protected $category_taxonomy_service;
420
+
421
+    /**
422
+     * The {@link Wordlift_Entity_Page_Service} instance.
423
+     *
424
+     * @since  3.11.0
425
+     * @access protected
426
+     * @var \Wordlift_Entity_Page_Service $entity_page_service The {@link Wordlift_Entity_Page_Service} instance.
427
+     */
428
+    protected $entity_page_service;
429
+
430
+    /**
431
+     * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
432
+     *
433
+     * @since  3.11.0
434
+     * @access protected
435
+     * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
436
+     */
437
+    protected $settings_page_action_link;
438
+
439
+    /**
440
+     * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
441
+     *
442
+     * @since  3.11.0
443
+     * @access protected
444
+     * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
445
+     */
446
+    protected $analytics_settings_page_action_link;
447
+
448
+    /**
449
+     * The {@link Wordlift_Analytics_Connect} class.
450
+     *
451
+     * @since  3.11.0
452
+     * @access protected
453
+     * @var \Wordlift_Analytics_Connect $analytics_connect The {@link Wordlift_Analytics_Connect} class.
454
+     */
455
+    protected $analytics_connect;
456
+
457
+    /**
458
+     * The {@link Wordlift_Publisher_Ajax_Adapter} instance.
459
+     *
460
+     * @since  3.11.0
461
+     * @access protected
462
+     * @var \Wordlift_Publisher_Ajax_Adapter $publisher_ajax_adapter The {@link Wordlift_Publisher_Ajax_Adapter} instance.
463
+     */
464
+    protected $publisher_ajax_adapter;
465
+
466
+    /**
467
+     * The {@link Wordlift_Admin_Input_Element} element renderer.
468
+     *
469
+     * @since  3.11.0
470
+     * @access protected
471
+     * @var \Wordlift_Admin_Input_Element $input_element The {@link Wordlift_Admin_Input_Element} element renderer.
472
+     */
473
+    protected $input_element;
474
+
475
+    /**
476
+     * The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
477
+     *
478
+     * @since  3.13.0
479
+     * @access protected
480
+     * @var \Wordlift_Admin_Radio_Input_Element $radio_input_element The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
481
+     */
482
+    protected $radio_input_element;
483
+
484
+    /**
485
+     * The {@link Wordlift_Admin_Language_Select_Element} element renderer.
486
+     *
487
+     * @since  3.11.0
488
+     * @access protected
489
+     * @var \Wordlift_Admin_Language_Select_Element $language_select_element The {@link Wordlift_Admin_Language_Select_Element} element renderer.
490
+     */
491
+    protected $language_select_element;
492
+
493
+    /**
494
+     * The {@link Wordlift_Admin_Country_Select_Element} element renderer.
495
+     *
496
+     * @since  3.18.0
497
+     * @access protected
498
+     * @var \Wordlift_Admin_Country_Select_Element $country_select_element The {@link Wordlift_Admin_Country_Select_Element} element renderer.
499
+     */
500
+    protected $country_select_element;
501
+
502
+    /**
503
+     * The {@link Wordlift_Admin_Publisher_Element} element renderer.
504
+     *
505
+     * @since  3.11.0
506
+     * @access protected
507
+     * @var \Wordlift_Admin_Publisher_Element $publisher_element The {@link Wordlift_Admin_Publisher_Element} element renderer.
508
+     */
509
+    protected $publisher_element;
510
+
511
+    /**
512
+     * The {@link Wordlift_Admin_Select2_Element} element renderer.
513
+     *
514
+     * @since  3.11.0
515
+     * @access protected
516
+     * @var \Wordlift_Admin_Select2_Element $select2_element The {@link Wordlift_Admin_Select2_Element} element renderer.
517
+     */
518
+    protected $select2_element;
519
+
520
+    /**
521
+     * The controller for the entity type list admin page
522
+     *
523
+     * @since  3.11.0
524
+     * @access private
525
+     * @var \Wordlift_Admin_Entity_Taxonomy_List_Page $entity_type_admin_page The {@link Wordlift_Admin_Entity_Taxonomy_List_Page} class.
526
+     */
527
+    private $entity_type_admin_page;
528
+
529
+    /**
530
+     * The controller for the entity type settings admin page
531
+     *
532
+     * @since  3.11.0
533
+     * @access private
534
+     * @var \Wordlift_Admin_Entity_Type_Settings $entity_type_settings_admin_page The {@link Wordlift_Admin_Entity_Type_Settings} class.
535
+     */
536
+    private $entity_type_settings_admin_page;
537
+
538
+    /**
539
+     * The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
540
+     *
541
+     * @since  3.11.0
542
+     * @access protected
543
+     * @var \Wordlift_Related_Entities_Cloud_Widget $related_entities_cloud_widget The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
544
+     */
545
+    protected $related_entities_cloud_widget;
546
+
547
+    /**
548
+     * The {@link Wordlift_Admin_Author_Element} instance.
549
+     *
550
+     * @since  3.14.0
551
+     * @access protected
552
+     * @var \Wordlift_Admin_Author_Element $author_element The {@link Wordlift_Admin_Author_Element} instance.
553
+     */
554
+    protected $author_element;
555
+
556
+    /**
557
+     * The {@link Wordlift_Batch_Analysis_Service} instance.
558
+     *
559
+     * @since  3.14.0
560
+     * @access protected
561
+     * @var \Wordlift_Batch_Analysis_Service $batch_analysis_service The {@link Wordlift_Batch_Analysis_Service} instance.
562
+     */
563
+    protected $batch_analysis_service;
564
+
565
+    /**
566
+     * The {@link Wordlift_Sample_Data_Service} instance.
567
+     *
568
+     * @since  3.12.0
569
+     * @access protected
570
+     * @var \Wordlift_Sample_Data_Service $sample_data_service The {@link Wordlift_Sample_Data_Service} instance.
571
+     */
572
+    protected $sample_data_service;
573
+
574
+    /**
575
+     * The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
576
+     *
577
+     * @since  3.12.0
578
+     * @access protected
579
+     * @var \Wordlift_Sample_Data_Ajax_Adapter $sample_data_ajax_adapter The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
580
+     */
581
+    protected $sample_data_ajax_adapter;
582
+
583
+    /**
584
+     * The {@link Wordlift_Batch_Analysis_Adapter} instance.
585
+     *
586
+     * @since  3.14.2
587
+     * @access protected
588
+     * @var \Wordlift_Batch_Analysis_Adapter $batch_analysis_adapter The {@link Wordlift_Batch_Analysis_Adapter} instance.
589
+     */
590
+    private $batch_analysis_adapter;
591
+
592
+    /**
593
+     * The {@link Wordlift_Relation_Rebuild_Service} instance.
594
+     *
595
+     * @since  3.14.3
596
+     * @access private
597
+     * @var \Wordlift_Relation_Rebuild_Service $relation_rebuild_service The {@link Wordlift_Relation_Rebuild_Service} instance.
598
+     */
599
+    private $relation_rebuild_service;
600
+
601
+    /**
602
+     * The {@link Wordlift_Relation_Rebuild_Adapter} instance.
603
+     *
604
+     * @since  3.14.3
605
+     * @access private
606
+     * @var \Wordlift_Relation_Rebuild_Adapter $relation_rebuild_adapter The {@link Wordlift_Relation_Rebuild_Adapter} instance.
607
+     */
608
+    private $relation_rebuild_adapter;
609
+
610
+    /**
611
+     * The {@link Wordlift_Reference_Rebuild_Service} instance.
612
+     *
613
+     * @since  3.18.0
614
+     * @access private
615
+     * @var \Wordlift_Reference_Rebuild_Service $reference_rebuild_service The {@link Wordlift_Reference_Rebuild_Service} instance.
616
+     */
617
+    private $reference_rebuild_service;
618
+
619
+    /**
620
+     * The {@link Wordlift_Google_Analytics_Export_Service} instance.
621
+     *
622
+     * @since  3.16.0
623
+     * @access protected
624
+     * @var \Wordlift_Google_Analytics_Export_Service $google_analytics_export_service The {@link Wordlift_Google_Analytics_Export_Service} instance.
625
+     */
626
+    protected $google_analytics_export_service;
627
+
628
+    /**
629
+     * {@link Wordlift}'s singleton instance.
630
+     *
631
+     * @since  3.15.0
632
+     * @access protected
633
+     * @var \Wordlift_Entity_Type_Adapter $entity_type_adapter The {@link Wordlift_Entity_Type_Adapter} instance.
634
+     */
635
+    protected $entity_type_adapter;
636
+
637
+    /**
638
+     * The {@link Wordlift_Linked_Data_Service} instance.
639
+     *
640
+     * @since  3.15.0
641
+     * @access protected
642
+     * @var \Wordlift_Linked_Data_Service $linked_data_service The {@link Wordlift_Linked_Data_Service} instance.
643
+     */
644
+    protected $linked_data_service;
645
+
646
+    /**
647
+     * The {@link Wordlift_Storage_Factory} instance.
648
+     *
649
+     * @since  3.15.0
650
+     * @access protected
651
+     * @var \Wordlift_Storage_Factory $storage_factory The {@link Wordlift_Storage_Factory} instance.
652
+     */
653
+    protected $storage_factory;
654
+
655
+    /**
656
+     * The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
657
+     *
658
+     * @since  3.15.0
659
+     * @access protected
660
+     * @var \Wordlift_Sparql_Tuple_Rendition_Factory $rendition_factory The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
661
+     */
662
+    protected $rendition_factory;
663
+
664
+    /**
665
+     * The {@link Wordlift_Autocomplete_Service} instance.
666
+     *
667
+     * @since  3.15.0
668
+     * @access private
669
+     * @var \Wordlift_Autocomplete_Service $autocomplete_service The {@link Wordlift_Autocomplete_Service} instance.
670
+     */
671
+    private $autocomplete_service;
672
+
673
+    /**
674
+     * The {@link Wordlift_Autocomplete_Adapter} instance.
675
+     *
676
+     * @since  3.15.0
677
+     * @access private
678
+     * @var \Wordlift_Autocomplete_Adapter $autocomplete_adapter The {@link Wordlift_Autocomplete_Adapter} instance.
679
+     */
680
+    private $autocomplete_adapter;
681
+
682
+    /**
683
+     * The {@link Wordlift_Relation_Service} instance.
684
+     *
685
+     * @since  3.15.0
686
+     * @access protected
687
+     * @var \Wordlift_Relation_Service $relation_service The {@link Wordlift_Relation_Service} instance.
688
+     */
689
+    protected $relation_service;
690
+
691
+    /**
692
+     * The {@link Wordlift_Cached_Post_Converter} instance.
693
+     *
694
+     * @since  3.16.0
695
+     * @access protected
696
+     * @var  \Wordlift_Cached_Post_Converter $cached_postid_to_jsonld_converter The {@link Wordlift_Cached_Post_Converter} instance.
697
+     *
698
+     */
699
+    protected $cached_postid_to_jsonld_converter;
700
+
701
+    /**
702
+     * The {@link Wordlift_File_Cache_Service} instance.
703
+     *
704
+     * @since  3.16.0
705
+     * @access protected
706
+     * @var \Wordlift_File_Cache_Service $file_cache_service The {@link Wordlift_File_Cache_Service} instance.
707
+     */
708
+    protected $file_cache_service;
709
+
710
+    /**
711
+     * The {@link Wordlift_Entity_Uri_Service} instance.
712
+     *
713
+     * @since  3.16.3
714
+     * @access protected
715
+     * @var \Wordlift_Entity_Uri_Service $entity_uri_service The {@link Wordlift_Entity_Uri_Service} instance.
716
+     */
717
+    protected $entity_uri_service;
718
+
719
+    /**
720
+     * The {@link Wordlift_Publisher_Service} instance.
721
+     *
722
+     * @since  3.19.0
723
+     * @access protected
724
+     * @var \Wordlift_Publisher_Service $publisher_service The {@link Wordlift_Publisher_Service} instance.
725
+     */
726
+    protected $publisher_service;
727
+
728
+    /**
729
+     * {@link Wordlift}'s singleton instance.
730
+     *
731
+     * @since  3.11.2
732
+     * @access private
733
+     * @var Wordlift $instance {@link Wordlift}'s singleton instance.
734
+     */
735
+    private static $instance;
736
+
737
+    //</editor-fold>
738
+
739
+    /**
740
+     * Define the core functionality of the plugin.
741
+     *
742
+     * Set the plugin name and the plugin version that can be used throughout the plugin.
743
+     * Load the dependencies, define the locale, and set the hooks for the admin area and
744
+     * the public-facing side of the site.
745
+     *
746
+     * @since    1.0.0
747
+     */
748
+    public function __construct() {
749
+
750
+        self::$instance = $this;
751
+
752
+        $this->plugin_name = 'wordlift';
753
+        $this->version     = '3.23.0-dev';
754
+        $this->load_dependencies();
755
+        $this->set_locale();
756
+        $this->define_admin_hooks();
757
+        $this->define_public_hooks();
758
+
759
+        // If we're in `WP_CLI` load the related files.
760
+        if ( class_exists( 'WP_CLI' ) ) {
761
+            $this->load_cli_dependencies();
762
+        }
763
+
764
+    }
765
+
766
+    /**
767
+     * Get the singleton instance.
768
+     *
769
+     * @return Wordlift The {@link Wordlift} singleton instance.
770
+     * @since 3.11.2
771
+     *
772
+     */
773
+    public static function get_instance() {
774
+
775
+        return self::$instance;
776
+    }
777
+
778
+    /**
779
+     * Load the required dependencies for this plugin.
780
+     *
781
+     * Include the following files that make up the plugin:
782
+     *
783
+     * - Wordlift_Loader. Orchestrates the hooks of the plugin.
784
+     * - Wordlift_i18n. Defines internationalization functionality.
785
+     * - Wordlift_Admin. Defines all hooks for the admin area.
786
+     * - Wordlift_Public. Defines all hooks for the public side of the site.
787
+     *
788
+     * Create an instance of the loader which will be used to register the hooks
789
+     * with WordPress.
790
+     *
791
+     * @since    1.0.0
792
+     * @access   private
793
+     */
794
+    private function load_dependencies() {
795
+
796
+        /**
797
+         * The class responsible for orchestrating the actions and filters of the
798
+         * core plugin.
799
+         */
800
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
801
+
802
+        // The class responsible for plugin uninstall.
803
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-deactivator-feedback.php';
804
+
805
+        /**
806
+         * The class responsible for defining internationalization functionality
807
+         * of the plugin.
808
+         */
809
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
810
+
811
+        /**
812
+         * WordLift's supported languages.
813
+         */
814
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
815
+
816
+        /**
817
+         * WordLift's supported countries.
818
+         */
819
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-countries.php';
820
+
821
+        /**
822
+         * Provide support functions to sanitize data.
823
+         */
824
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
825
+
826
+        /** Services. */
827
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
828
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
829
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
830
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
831
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
832
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
833
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
834
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
835
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
836
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-image-service.php';
837
+
838
+        /**
839
+         * The Query builder.
840
+         */
841
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
842
+
843
+        /**
844
+         * The Schema service.
845
+         */
846
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
847
+
848
+        /**
849
+         * The schema:url property service.
850
+         */
851
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
852
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
853
+
854
+        /**
855
+         * The UI service.
856
+         */
857
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
858
+
859
+        /**
860
+         * The Thumbnail service.
861
+         */
862
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
863
+
864
+        /**
865
+         * The Entity Types Taxonomy service.
866
+         */
867
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
868
+
869
+        /**
870
+         * The Entity service.
871
+         */
872
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
873
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
874
+
875
+        // Add the entity rating service.
876
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
877
+
878
+        /**
879
+         * The User service.
880
+         */
881
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
882
+
883
+        /**
884
+         * The Timeline service.
885
+         */
886
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
887
+
888
+        /**
889
+         * The Topic Taxonomy service.
890
+         */
891
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
892
+
893
+        /**
894
+         * The SPARQL service.
895
+         */
896
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
897
+
898
+        /**
899
+         * The WordLift import service.
900
+         */
901
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
902
+
903
+        /**
904
+         * The WordLift URI service.
905
+         */
906
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
907
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
908
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
909
+
910
+        /**
911
+         * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
912
+         */
913
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-listable.php';
914
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-rebuild-service.php';
915
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-reference-rebuild-service.php';
916
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-service.php';
917
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
918
+
919
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
920
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
921
+
922
+        /**
923
+         * Load the converters.
924
+         */
925
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
926
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
927
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
928
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
929
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
930
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
931
+
932
+        /**
933
+         * Load cache-related files.
934
+         */
935
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
936
+
937
+        /**
938
+         * Load the content filter.
939
+         */
940
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
941
+
942
+        /*
943 943
 		 * Load the excerpt helper.
944 944
 		 */
945
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
946
-
947
-		/**
948
-		 * Load the JSON-LD service to publish entities using JSON-LD.s
949
-		 *
950
-		 * @since 3.8.0
951
-		 */
952
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
953
-
954
-		// The Publisher Service and the AJAX adapter.
955
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
956
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
957
-
958
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
959
-
960
-		/**
961
-		 * Load the WordLift key validation service.
962
-		 */
963
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
964
-
965
-		// Load the `Wordlift_Category_Taxonomy_Service` class definition.
966
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
967
-
968
-		// Load the `Wordlift_Entity_Page_Service` class definition.
969
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
970
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-sql-helper.php';
971
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-service.php';
972
-
973
-		/** Linked Data. */
974
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
975
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
976
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
977
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
978
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
979
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
980
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
981
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
982
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
983
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
984
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
985
-
986
-		/** Linked Data Rendition. */
987
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
988
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
989
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
990
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
991
-
992
-		/** Services. */
993
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
994
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-api-service.php';
995
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'install/class-wordlift-install-service.php';
996
-
997
-		/** Adapters. */
998
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
999
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
1000
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
1001
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
1002
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-adapter.php';
1003
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-wprocket-adapter.php';
1004
-
1005
-		/** Async Tasks. */
1006
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
1007
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1008
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-request-async-task.php';
1009
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-complete-async-task.php';
1010
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1011
-
1012
-		/** Autocomplete. */
1013
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-service.php';
1014
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
1015
-
1016
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-remote-image-service.php';
1017
-
1018
-		/** Analytics */
1019
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/analytics/class-wordlift-analytics-connect.php';
1020
-
1021
-		/**
1022
-		 * The class responsible for defining all actions that occur in the admin area.
1023
-		 */
1024
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
1025
-
1026
-		/**
1027
-		 * The class to customize the entity list admin page.
1028
-		 */
1029
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
1030
-
1031
-		/**
1032
-		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
1033
-		 */
1034
-		global $wp_version;
1035
-		if ( version_compare( $wp_version, '5.3', '<' ) ) {
1036
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
1037
-		} else {
1038
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1039
-		}
1040
-
1041
-		/**
1042
-		 * The Notice service.
1043
-		 */
1044
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
1045
-
1046
-		/**
1047
-		 * The PrimaShop adapter.
1048
-		 */
1049
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
1050
-
1051
-		/**
1052
-		 * The WordLift Dashboard service.
1053
-		 */
1054
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
1055
-
1056
-		/**
1057
-		 * The admin 'Install wizard' page.
1058
-		 */
1059
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
1060
-
1061
-		/**
1062
-		 * The WordLift entity type list admin page controller.
1063
-		 */
1064
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1065
-
1066
-		/**
1067
-		 * The WordLift entity type settings admin page controller.
1068
-		 */
1069
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
1070
-
1071
-		/**
1072
-		 * The admin 'Download Your Data' page.
1073
-		 */
1074
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
1075
-
1076
-		/**
1077
-		 * The admin 'WordLift Settings' page.
1078
-		 */
1079
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/intf-wordlift-admin-element.php';
1080
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-element.php';
1081
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-radio-element.php';
1082
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select-element.php';
1083
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select2-element.php';
1084
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
1085
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
1086
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
1087
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-author-element.php';
1088
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
1089
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
1090
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
1091
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
1092
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-batch-analysis-page.php';
1093
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
1094
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1095
-
1096
-		/** Admin Pages */
1097
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
1098
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
1099
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-search-rankings-page.php';
1100
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
1101
-		/**
1102
-		 * The class responsible for providing mockup for sync mappings
1103
-		 */
1104
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-mappings-mockup-page.php';
1105
-
1106
-		/**
1107
-		 * The class responsible for defining all actions that occur in the public-facing
1108
-		 * side of the site.
1109
-		 */
1110
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
1111
-
1112
-		/**
1113
-		 * The shortcode abstract class.
1114
-		 */
1115
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1116
-
1117
-		/**
1118
-		 * The Timeline shortcode.
1119
-		 */
1120
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1121
-
1122
-		/**
1123
-		 * The Navigator shortcode.
1124
-		 */
1125
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1126
-
1127
-		/**
1128
-		 * The chord shortcode.
1129
-		 */
1130
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1131
-
1132
-		/**
1133
-		 * The geomap shortcode.
1134
-		 */
1135
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1136
-
1137
-		/**
1138
-		 * The entity cloud shortcode.
1139
-		 */
1140
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1141
-
1142
-		/**
1143
-		 * The entity glossary shortcode.
1144
-		 */
1145
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1146
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1147
-
1148
-		/**
1149
-		 * Faceted Search shortcode.
1150
-		 */
1151
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-faceted-search-shortcode.php';
1152
-
1153
-		/**
1154
-		 * The ShareThis service.
1155
-		 */
1156
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1157
-
1158
-		/**
1159
-		 * The SEO service.
1160
-		 */
1161
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1162
-
1163
-		/**
1164
-		 * The AMP service.
1165
-		 */
1166
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1167
-
1168
-		/** Widgets */
1169
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1170
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1171
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-context-cards.php';
1172
-
1173
-		/*
945
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
946
+
947
+        /**
948
+         * Load the JSON-LD service to publish entities using JSON-LD.s
949
+         *
950
+         * @since 3.8.0
951
+         */
952
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
953
+
954
+        // The Publisher Service and the AJAX adapter.
955
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
956
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
957
+
958
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
959
+
960
+        /**
961
+         * Load the WordLift key validation service.
962
+         */
963
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
964
+
965
+        // Load the `Wordlift_Category_Taxonomy_Service` class definition.
966
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
967
+
968
+        // Load the `Wordlift_Entity_Page_Service` class definition.
969
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
970
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-sql-helper.php';
971
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-service.php';
972
+
973
+        /** Linked Data. */
974
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
975
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
976
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
977
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
978
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
979
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
980
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
981
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
982
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
983
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
984
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
985
+
986
+        /** Linked Data Rendition. */
987
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
988
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
989
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
990
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
991
+
992
+        /** Services. */
993
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
994
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-api-service.php';
995
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'install/class-wordlift-install-service.php';
996
+
997
+        /** Adapters. */
998
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
999
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
1000
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
1001
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
1002
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-adapter.php';
1003
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-wprocket-adapter.php';
1004
+
1005
+        /** Async Tasks. */
1006
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
1007
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1008
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-request-async-task.php';
1009
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-complete-async-task.php';
1010
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1011
+
1012
+        /** Autocomplete. */
1013
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-service.php';
1014
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
1015
+
1016
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-remote-image-service.php';
1017
+
1018
+        /** Analytics */
1019
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/analytics/class-wordlift-analytics-connect.php';
1020
+
1021
+        /**
1022
+         * The class responsible for defining all actions that occur in the admin area.
1023
+         */
1024
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
1025
+
1026
+        /**
1027
+         * The class to customize the entity list admin page.
1028
+         */
1029
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
1030
+
1031
+        /**
1032
+         * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
1033
+         */
1034
+        global $wp_version;
1035
+        if ( version_compare( $wp_version, '5.3', '<' ) ) {
1036
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
1037
+        } else {
1038
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1039
+        }
1040
+
1041
+        /**
1042
+         * The Notice service.
1043
+         */
1044
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
1045
+
1046
+        /**
1047
+         * The PrimaShop adapter.
1048
+         */
1049
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
1050
+
1051
+        /**
1052
+         * The WordLift Dashboard service.
1053
+         */
1054
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
1055
+
1056
+        /**
1057
+         * The admin 'Install wizard' page.
1058
+         */
1059
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
1060
+
1061
+        /**
1062
+         * The WordLift entity type list admin page controller.
1063
+         */
1064
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1065
+
1066
+        /**
1067
+         * The WordLift entity type settings admin page controller.
1068
+         */
1069
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
1070
+
1071
+        /**
1072
+         * The admin 'Download Your Data' page.
1073
+         */
1074
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
1075
+
1076
+        /**
1077
+         * The admin 'WordLift Settings' page.
1078
+         */
1079
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/intf-wordlift-admin-element.php';
1080
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-element.php';
1081
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-radio-element.php';
1082
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select-element.php';
1083
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select2-element.php';
1084
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
1085
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
1086
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
1087
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-author-element.php';
1088
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
1089
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
1090
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
1091
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
1092
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-batch-analysis-page.php';
1093
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
1094
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1095
+
1096
+        /** Admin Pages */
1097
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
1098
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
1099
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-search-rankings-page.php';
1100
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
1101
+        /**
1102
+         * The class responsible for providing mockup for sync mappings
1103
+         */
1104
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-mappings-mockup-page.php';
1105
+
1106
+        /**
1107
+         * The class responsible for defining all actions that occur in the public-facing
1108
+         * side of the site.
1109
+         */
1110
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
1111
+
1112
+        /**
1113
+         * The shortcode abstract class.
1114
+         */
1115
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1116
+
1117
+        /**
1118
+         * The Timeline shortcode.
1119
+         */
1120
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1121
+
1122
+        /**
1123
+         * The Navigator shortcode.
1124
+         */
1125
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1126
+
1127
+        /**
1128
+         * The chord shortcode.
1129
+         */
1130
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1131
+
1132
+        /**
1133
+         * The geomap shortcode.
1134
+         */
1135
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1136
+
1137
+        /**
1138
+         * The entity cloud shortcode.
1139
+         */
1140
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1141
+
1142
+        /**
1143
+         * The entity glossary shortcode.
1144
+         */
1145
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1146
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1147
+
1148
+        /**
1149
+         * Faceted Search shortcode.
1150
+         */
1151
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-faceted-search-shortcode.php';
1152
+
1153
+        /**
1154
+         * The ShareThis service.
1155
+         */
1156
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1157
+
1158
+        /**
1159
+         * The SEO service.
1160
+         */
1161
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1162
+
1163
+        /**
1164
+         * The AMP service.
1165
+         */
1166
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1167
+
1168
+        /** Widgets */
1169
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1170
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1171
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-context-cards.php';
1172
+
1173
+        /*
1174 1174
 		 * Schema.org Services.
1175 1175
 		 *
1176 1176
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1177 1177
 		 */
1178
-		if ( WL_ALL_ENTITY_TYPES ) {
1179
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1180
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1181
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1182
-			new Wordlift_Schemaorg_Sync_Service();
1183
-			$schemaorg_property_service = new Wordlift_Schemaorg_Property_Service();
1184
-			new Wordlift_Schemaorg_Class_Service();
1185
-		} else {
1186
-			$schemaorg_property_service = null;
1187
-		}
1178
+        if ( WL_ALL_ENTITY_TYPES ) {
1179
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1180
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1181
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1182
+            new Wordlift_Schemaorg_Sync_Service();
1183
+            $schemaorg_property_service = new Wordlift_Schemaorg_Property_Service();
1184
+            new Wordlift_Schemaorg_Class_Service();
1185
+        } else {
1186
+            $schemaorg_property_service = null;
1187
+        }
1188 1188
 
1189
-		$this->loader = new Wordlift_Loader();
1189
+        $this->loader = new Wordlift_Loader();
1190 1190
 
1191
-		// Instantiate a global logger.
1192
-		global $wl_logger;
1193
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1191
+        // Instantiate a global logger.
1192
+        global $wl_logger;
1193
+        $wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1194 1194
 
1195
-		// Load the `wl-api` end-point.
1196
-		new Wordlift_Http_Api();
1195
+        // Load the `wl-api` end-point.
1196
+        new Wordlift_Http_Api();
1197 1197
 
1198
-		// Load the Install Service.
1199
-		$this->install_service = new Wordlift_Install_Service();
1198
+        // Load the Install Service.
1199
+        $this->install_service = new Wordlift_Install_Service();
1200 1200
 
1201
-		/** Services. */
1202
-		// Create the configuration service.
1203
-		$this->configuration_service = new Wordlift_Configuration_Service();
1204
-		$api_service                 = new Wordlift_Api_Service( $this->configuration_service );
1201
+        /** Services. */
1202
+        // Create the configuration service.
1203
+        $this->configuration_service = new Wordlift_Configuration_Service();
1204
+        $api_service                 = new Wordlift_Api_Service( $this->configuration_service );
1205 1205
 
1206
-		// Create an entity type service instance. It'll be later bound to the init action.
1207
-		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1206
+        // Create an entity type service instance. It'll be later bound to the init action.
1207
+        $this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1208 1208
 
1209
-		// Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1210
-		$this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1209
+        // Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1210
+        $this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1211 1211
 
1212
-		// Create an instance of the UI service.
1213
-		$this->ui_service = new Wordlift_UI_Service();
1212
+        // Create an instance of the UI service.
1213
+        $this->ui_service = new Wordlift_UI_Service();
1214 1214
 
1215
-		// Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
1216
-		$this->thumbnail_service = new Wordlift_Thumbnail_Service();
1215
+        // Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
1216
+        $this->thumbnail_service = new Wordlift_Thumbnail_Service();
1217 1217
 
1218
-		$this->sparql_service        = new Wordlift_Sparql_Service();
1219
-		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1220
-		$this->notice_service        = new Wordlift_Notice_Service();
1221
-		$this->relation_service      = new Wordlift_Relation_Service();
1218
+        $this->sparql_service        = new Wordlift_Sparql_Service();
1219
+        $schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1220
+        $this->notice_service        = new Wordlift_Notice_Service();
1221
+        $this->relation_service      = new Wordlift_Relation_Service();
1222 1222
 
1223
-		$entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1224
-		$this->file_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'converter/' );
1225
-		$this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1226
-		$this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1227
-		$this->user_service       = new Wordlift_User_Service( $this->sparql_service, $this->entity_service );
1223
+        $entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1224
+        $this->file_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'converter/' );
1225
+        $this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1226
+        $this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1227
+        $this->user_service       = new Wordlift_User_Service( $this->sparql_service, $this->entity_service );
1228 1228
 
1229
-		// Instantiate the JSON-LD service.
1230
-		$property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1229
+        // Instantiate the JSON-LD service.
1230
+        $property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1231 1231
 
1232
-		/** Linked Data. */
1233
-		$this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1234
-		$this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1232
+        /** Linked Data. */
1233
+        $this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1234
+        $this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1235 1235
 
1236
-		$this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1236
+        $this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1237 1237
 
1238
-		// Create a new instance of the Redirect service.
1239
-		$this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_uri_service );
1240
-		$this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1241
-		$this->linked_data_service = new Wordlift_Linked_Data_Service( $this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service );
1238
+        // Create a new instance of the Redirect service.
1239
+        $this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_uri_service );
1240
+        $this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1241
+        $this->linked_data_service = new Wordlift_Linked_Data_Service( $this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service );
1242 1242
 
1243
-		// Create a new instance of the Timeline service and Timeline shortcode.
1244
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1243
+        // Create a new instance of the Timeline service and Timeline shortcode.
1244
+        $this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1245 1245
 
1246
-		$this->batch_analysis_service = new Wordlift_Batch_Analysis_Service( $this, $this->configuration_service, $this->file_cache_service );
1246
+        $this->batch_analysis_service = new Wordlift_Batch_Analysis_Service( $this, $this->configuration_service, $this->file_cache_service );
1247 1247
 
1248
-		$this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1248
+        $this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1249 1249
 
1250
-		$this->topic_taxonomy_service        = new Wordlift_Topic_Taxonomy_Service();
1251
-		$this->entity_types_taxonomy_service = new Wordlift_Entity_Type_Taxonomy_Service();
1250
+        $this->topic_taxonomy_service        = new Wordlift_Topic_Taxonomy_Service();
1251
+        $this->entity_types_taxonomy_service = new Wordlift_Entity_Type_Taxonomy_Service();
1252 1252
 
1253
-		// Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
1254
-		$this->sharethis_service = new Wordlift_ShareThis_Service();
1253
+        // Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
1254
+        $this->sharethis_service = new Wordlift_ShareThis_Service();
1255 1255
 
1256
-		// Create an instance of the PrimaShop adapter.
1257
-		$this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1256
+        // Create an instance of the PrimaShop adapter.
1257
+        $this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1258 1258
 
1259
-		// Create an import service instance to hook later to WP's import function.
1260
-		$this->import_service = new Wordlift_Import_Service( $this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri() );
1259
+        // Create an import service instance to hook later to WP's import function.
1260
+        $this->import_service = new Wordlift_Import_Service( $this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri() );
1261 1261
 
1262
-		$uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1262
+        $uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1263 1263
 
1264
-		// Create the entity rating service.
1265
-		$this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1264
+        // Create the entity rating service.
1265
+        $this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1266 1266
 
1267
-		// Create entity list customization (wp-admin/edit.php).
1268
-		$this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1267
+        // Create entity list customization (wp-admin/edit.php).
1268
+        $this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1269 1269
 
1270
-		// Create a new instance of the Redirect service.
1271
-		$this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1270
+        // Create a new instance of the Redirect service.
1271
+        $this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1272 1272
 
1273
-		// Create an instance of the Publisher Service and the AJAX Adapter.
1274
-		$this->publisher_service = new Wordlift_Publisher_Service( $this->configuration_service );
1275
-		$this->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1276
-		$this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1273
+        // Create an instance of the Publisher Service and the AJAX Adapter.
1274
+        $this->publisher_service = new Wordlift_Publisher_Service( $this->configuration_service );
1275
+        $this->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1276
+        $this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1277 1277
 
1278
-		$attachment_service = new Wordlift_Attachment_Service();
1278
+        $attachment_service = new Wordlift_Attachment_Service();
1279 1279
 
1280
-		// Instantiate the JSON-LD service.
1281
-		$property_getter                         = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1282
-		$this->entity_post_to_jsonld_converter   = new Wordlift_Entity_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter, $schemaorg_property_service );
1283
-		$this->post_to_jsonld_converter          = new Wordlift_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1284
-		$this->postid_to_jsonld_converter        = new Wordlift_Postid_To_Jsonld_Converter( $this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter );
1285
-		$this->jsonld_website_converter          = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1286
-		$this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->file_cache_service, $this->configuration_service );
1287
-		$this->jsonld_service                    = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter );
1280
+        // Instantiate the JSON-LD service.
1281
+        $property_getter                         = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1282
+        $this->entity_post_to_jsonld_converter   = new Wordlift_Entity_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter, $schemaorg_property_service );
1283
+        $this->post_to_jsonld_converter          = new Wordlift_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1284
+        $this->postid_to_jsonld_converter        = new Wordlift_Postid_To_Jsonld_Converter( $this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter );
1285
+        $this->jsonld_website_converter          = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1286
+        $this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->file_cache_service, $this->configuration_service );
1287
+        $this->jsonld_service                    = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter );
1288 1288
 
1289 1289
 
1290
-		$this->key_validation_service    = new Wordlift_Key_Validation_Service( $this->configuration_service );
1291
-		$this->content_filter_service    = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1292
-		$this->relation_rebuild_service  = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1293
-		$this->sample_data_service       = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1294
-		$this->sample_data_ajax_adapter  = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1295
-		$this->reference_rebuild_service = new Wordlift_Reference_Rebuild_Service( $this->linked_data_service, $this->entity_service, $this->relation_service );
1290
+        $this->key_validation_service    = new Wordlift_Key_Validation_Service( $this->configuration_service );
1291
+        $this->content_filter_service    = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1292
+        $this->relation_rebuild_service  = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1293
+        $this->sample_data_service       = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1294
+        $this->sample_data_ajax_adapter  = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1295
+        $this->reference_rebuild_service = new Wordlift_Reference_Rebuild_Service( $this->linked_data_service, $this->entity_service, $this->relation_service );
1296 1296
 
1297
-		// Initialize the shortcodes.
1298
-		new Wordlift_Navigator_Shortcode();
1299
-		new Wordlift_Chord_Shortcode();
1300
-		new Wordlift_Geomap_Shortcode();
1301
-		new Wordlift_Timeline_Shortcode();
1302
-		new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service );
1303
-		new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1304
-		new Wordlift_Faceted_Search_Shortcode();
1297
+        // Initialize the shortcodes.
1298
+        new Wordlift_Navigator_Shortcode();
1299
+        new Wordlift_Chord_Shortcode();
1300
+        new Wordlift_Geomap_Shortcode();
1301
+        new Wordlift_Timeline_Shortcode();
1302
+        new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service );
1303
+        new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1304
+        new Wordlift_Faceted_Search_Shortcode();
1305 1305
 
1306
-		// Initialize the SEO service.
1307
-		new Wordlift_Seo_Service();
1306
+        // Initialize the SEO service.
1307
+        new Wordlift_Seo_Service();
1308 1308
 
1309
-		// Initialize the AMP service.
1310
-		new Wordlift_AMP_Service( $this->jsonld_service );
1309
+        // Initialize the AMP service.
1310
+        new Wordlift_AMP_Service( $this->jsonld_service );
1311 1311
 
1312
-		/** Services. */
1313
-		$this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1314
-		new Wordlift_Image_Service();
1312
+        /** Services. */
1313
+        $this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1314
+        new Wordlift_Image_Service();
1315 1315
 
1316
-		/** Adapters. */
1317
-		$this->entity_type_adapter      = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1318
-		$this->publisher_ajax_adapter   = new Wordlift_Publisher_Ajax_Adapter( $this->publisher_service );
1319
-		$this->tinymce_adapter          = new Wordlift_Tinymce_Adapter( $this );
1320
-		$this->batch_analysis_adapter   = new Wordlift_Batch_Analysis_Adapter( $this->batch_analysis_service );
1321
-		$this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1316
+        /** Adapters. */
1317
+        $this->entity_type_adapter      = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1318
+        $this->publisher_ajax_adapter   = new Wordlift_Publisher_Ajax_Adapter( $this->publisher_service );
1319
+        $this->tinymce_adapter          = new Wordlift_Tinymce_Adapter( $this );
1320
+        $this->batch_analysis_adapter   = new Wordlift_Batch_Analysis_Adapter( $this->batch_analysis_service );
1321
+        $this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1322 1322
 
1323
-		/*
1323
+        /*
1324 1324
 		 * Exclude our public js from WP-Rocket.
1325 1325
 		 *
1326 1326
 		 * @since 3.19.4
1327 1327
 		 *
1328 1328
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/842.
1329 1329
 		 */
1330
-		new Wordlift_WpRocket_Adapter();
1331
-
1332
-		// Create a Rebuild Service instance, which we'll later bound to an ajax call.
1333
-		$this->rebuild_service = new Wordlift_Rebuild_Service(
1334
-			$this->sparql_service,
1335
-			$uri_service
1336
-		);
1337
-
1338
-		/** Async Tasks. */
1339
-		new Wordlift_Sparql_Query_Async_Task();
1340
-		new Wordlift_Batch_Analysis_Request_Async_Task();
1341
-		new Wordlift_Batch_Analysis_Complete_Async_Task();
1342
-		new Wordlift_Push_References_Async_Task();
1343
-
1344
-		/** WL Autocomplete. */
1345
-		$this->autocomplete_service = new Wordlift_Autocomplete_Service( $this->configuration_service );
1346
-		$this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $this->autocomplete_service );
1347
-
1348
-		/** WordPress Admin UI. */
1349
-
1350
-		// UI elements.
1351
-		$this->input_element           = new Wordlift_Admin_Input_Element();
1352
-		$this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1353
-		$this->select2_element         = new Wordlift_Admin_Select2_Element();
1354
-		$this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1355
-		$this->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1356
-		$tabs_element                  = new Wordlift_Admin_Tabs_Element();
1357
-		$this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element );
1358
-		$this->author_element          = new Wordlift_Admin_Author_Element( $this->publisher_service, $this->select2_element );
1359
-
1360
-		$this->settings_page             = new Wordlift_Admin_Settings_Page( $this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->country_select_element, $this->publisher_element, $this->radio_input_element );
1361
-		$this->batch_analysis_page       = new Wordlift_Batch_Analysis_Page( $this->batch_analysis_service );
1362
-		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1363
-
1364
-		$this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $this->configuration_service, $this->input_element, $this->radio_input_element );
1365
-		$this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $this->analytics_settings_page );
1366
-		$this->analytics_connect                   = new Wordlift_Analytics_Connect();
1367
-
1368
-		// Pages.
1369
-		/*
1330
+        new Wordlift_WpRocket_Adapter();
1331
+
1332
+        // Create a Rebuild Service instance, which we'll later bound to an ajax call.
1333
+        $this->rebuild_service = new Wordlift_Rebuild_Service(
1334
+            $this->sparql_service,
1335
+            $uri_service
1336
+        );
1337
+
1338
+        /** Async Tasks. */
1339
+        new Wordlift_Sparql_Query_Async_Task();
1340
+        new Wordlift_Batch_Analysis_Request_Async_Task();
1341
+        new Wordlift_Batch_Analysis_Complete_Async_Task();
1342
+        new Wordlift_Push_References_Async_Task();
1343
+
1344
+        /** WL Autocomplete. */
1345
+        $this->autocomplete_service = new Wordlift_Autocomplete_Service( $this->configuration_service );
1346
+        $this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $this->autocomplete_service );
1347
+
1348
+        /** WordPress Admin UI. */
1349
+
1350
+        // UI elements.
1351
+        $this->input_element           = new Wordlift_Admin_Input_Element();
1352
+        $this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1353
+        $this->select2_element         = new Wordlift_Admin_Select2_Element();
1354
+        $this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1355
+        $this->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1356
+        $tabs_element                  = new Wordlift_Admin_Tabs_Element();
1357
+        $this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element );
1358
+        $this->author_element          = new Wordlift_Admin_Author_Element( $this->publisher_service, $this->select2_element );
1359
+
1360
+        $this->settings_page             = new Wordlift_Admin_Settings_Page( $this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->country_select_element, $this->publisher_element, $this->radio_input_element );
1361
+        $this->batch_analysis_page       = new Wordlift_Batch_Analysis_Page( $this->batch_analysis_service );
1362
+        $this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1363
+
1364
+        $this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $this->configuration_service, $this->input_element, $this->radio_input_element );
1365
+        $this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $this->analytics_settings_page );
1366
+        $this->analytics_connect                   = new Wordlift_Analytics_Connect();
1367
+
1368
+        // Pages.
1369
+        /*
1370 1370
 		 * Call the `wl_can_see_classification_box` filter to determine whether we can display the classification box.
1371 1371
 		 *
1372 1372
 		 * @since 3.20.3
1373 1373
 		 *
1374 1374
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/914
1375 1375
 		 */
1376
-		if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1377
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
1378
-			new Wordlift_Admin_Post_Edit_Page( $this );
1379
-		}
1380
-		new Wordlift_Entity_Type_Admin_Service();
1376
+        if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1377
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
1378
+            new Wordlift_Admin_Post_Edit_Page( $this );
1379
+        }
1380
+        new Wordlift_Entity_Type_Admin_Service();
1381 1381
 
1382
-		// create an instance of the entity type list admin page controller.
1383
-		$this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1382
+        // create an instance of the entity type list admin page controller.
1383
+        $this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1384 1384
 
1385
-		// create an instance of the entity type setting admin page controller.
1386
-		$this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1385
+        // create an instance of the entity type setting admin page controller.
1386
+        $this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1387 1387
 
1388
-		/** Widgets */
1389
-		$this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1388
+        /** Widgets */
1389
+        $this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1390 1390
 
1391
-		/* WordPress Admin. */
1392
-		$this->download_your_data_page   = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1393
-		$this->status_page               = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1394
-		$this->sync_mappings_mockup_page = new Wordlift_Admin_Mappings_Mockup_Page();
1395
-		// Create an instance of the install wizard.
1396
-		$this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service, $this->language_select_element, $this->country_select_element );
1391
+        /* WordPress Admin. */
1392
+        $this->download_your_data_page   = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1393
+        $this->status_page               = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1394
+        $this->sync_mappings_mockup_page = new Wordlift_Admin_Mappings_Mockup_Page();
1395
+        // Create an instance of the install wizard.
1396
+        $this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service, $this->language_select_element, $this->country_select_element );
1397 1397
 
1398
-		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1398
+        $this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1399 1399
 
1400
-		// User Profile.
1401
-		new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1400
+        // User Profile.
1401
+        new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1402 1402
 
1403
-		$this->entity_page_service = new Wordlift_Entity_Page_Service();
1403
+        $this->entity_page_service = new Wordlift_Entity_Page_Service();
1404 1404
 
1405
-		// Load the debug service if WP is in debug mode.
1406
-		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1407
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1408
-			new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1409
-		}
1405
+        // Load the debug service if WP is in debug mode.
1406
+        if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1407
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1408
+            new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1409
+        }
1410 1410
 
1411
-		// Remote Image Service.
1412
-		new Wordlift_Remote_Image_Service();
1411
+        // Remote Image Service.
1412
+        new Wordlift_Remote_Image_Service();
1413 1413
 
1414
-		/*
1414
+        /*
1415 1415
 		 * Provides mappings between post types and entity types.
1416 1416
 		 *
1417 1417
 		 * @since 3.20.0
1418 1418
 		 *
1419 1419
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/852.
1420 1420
 		 */
1421
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-action.php';
1422
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-service.php';
1423
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1421
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-action.php';
1422
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-service.php';
1423
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1424 1424
 
1425
-		// Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1426
-		new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1425
+        // Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1426
+        new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1427 1427
 
1428
-		/*
1428
+        /*
1429 1429
 		 * Batch Operations. They're similar to Batch Actions but do not require working on post types.
1430 1430
 		 *
1431 1431
 		 * Eventually Batch Actions will become Batch Operations.
1432 1432
 		 *
1433 1433
 		 * @since 3.20.0
1434 1434
 		 */
1435
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/intf-wordlift-batch-operation.php';
1436
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1435
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/intf-wordlift-batch-operation.php';
1436
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1437 1437
 
1438
-		/*
1438
+        /*
1439 1439
 		 * Add the Search Keywords taxonomy to manage the Search Keywords on WLS.
1440 1440
 		 *
1441 1441
 		 * @link https://github.com/insideout10/wordlift-plugin/issues/761
1442 1442
 		 *
1443 1443
 		 * @since 3.20.0
1444 1444
 		 */
1445
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/search-keywords/class-wordlift-search-keyword-taxonomy.php';
1446
-		new Wordlift_Search_Keyword_Taxonomy( $api_service );
1445
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/search-keywords/class-wordlift-search-keyword-taxonomy.php';
1446
+        new Wordlift_Search_Keyword_Taxonomy( $api_service );
1447 1447
 
1448
-		/*
1448
+        /*
1449 1449
 		 * Load dependencies for the front-end.
1450 1450
 		 *
1451 1451
 		 * @since 3.20.0
1452 1452
 		 */
1453
-		if ( ! is_admin() ) {
1454
-			/*
1453
+        if ( ! is_admin() ) {
1454
+            /*
1455 1455
 			 * Load the `Wordlift_Term_JsonLd_Adapter`.
1456 1456
 			 *
1457 1457
 			 * @see https://github.com/insideout10/wordlift-plugin/issues/892
1458 1458
 			 *
1459 1459
 			 * @since 3.20.0
1460 1460
 			 */
1461
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-term-jsonld-adapter.php';
1462
-			new Wordlift_Term_JsonLd_Adapter( $this->entity_uri_service, $this->jsonld_service );
1463
-		}
1461
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-term-jsonld-adapter.php';
1462
+            new Wordlift_Term_JsonLd_Adapter( $this->entity_uri_service, $this->jsonld_service );
1463
+        }
1464 1464
 
1465
-		/*
1465
+        /*
1466 1466
 		 * Initialize the Context Cards Service
1467 1467
 		 *
1468 1468
 		 * @link https://github.com/insideout10/wordlift-plugin/issues/934
1469 1469
 		 *
1470 1470
 		 * @since 3.22.0
1471 1471
 		 */
1472
-		$this->context_cards_service = new Wordlift_Context_Cards_Service();
1473
-
1474
-	}
1475
-
1476
-	/**
1477
-	 * Define the locale for this plugin for internationalization.
1478
-	 *
1479
-	 * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1480
-	 * with WordPress.
1481
-	 *
1482
-	 * @since    1.0.0
1483
-	 * @access   private
1484
-	 */
1485
-	private function set_locale() {
1486
-
1487
-		$plugin_i18n = new Wordlift_i18n();
1488
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
1489
-
1490
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1491
-
1492
-	}
1493
-
1494
-	/**
1495
-	 * Register all of the hooks related to the admin area functionality
1496
-	 * of the plugin.
1497
-	 *
1498
-	 * @since    1.0.0
1499
-	 * @access   private
1500
-	 */
1501
-	private function define_admin_hooks() {
1502
-
1503
-		$plugin_admin = new Wordlift_Admin(
1504
-			$this->get_plugin_name(),
1505
-			$this->get_version(),
1506
-			$this->configuration_service,
1507
-			$this->notice_service,
1508
-			$this->user_service
1509
-		);
1510
-
1511
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1512
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1513
-
1514
-		// Hook the init action to taxonomy services.
1515
-		$this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1516
-		$this->loader->add_action( 'init', $this->entity_types_taxonomy_service, 'init', 0 );
1517
-
1518
-		// Hook the deleted_post_meta action to the Thumbnail service.
1519
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1520
-
1521
-		// Hook the added_post_meta action to the Thumbnail service.
1522
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1523
-
1524
-		// Hook the updated_post_meta action to the Thumbnail service.
1525
-		$this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1526
-
1527
-		// Hook the AJAX wl_timeline action to the Timeline service.
1528
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1529
-
1530
-		// Register custom allowed redirect hosts.
1531
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1532
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1533
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1534
-
1535
-		/*
1472
+        $this->context_cards_service = new Wordlift_Context_Cards_Service();
1473
+
1474
+    }
1475
+
1476
+    /**
1477
+     * Define the locale for this plugin for internationalization.
1478
+     *
1479
+     * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1480
+     * with WordPress.
1481
+     *
1482
+     * @since    1.0.0
1483
+     * @access   private
1484
+     */
1485
+    private function set_locale() {
1486
+
1487
+        $plugin_i18n = new Wordlift_i18n();
1488
+        $plugin_i18n->set_domain( $this->get_plugin_name() );
1489
+
1490
+        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1491
+
1492
+    }
1493
+
1494
+    /**
1495
+     * Register all of the hooks related to the admin area functionality
1496
+     * of the plugin.
1497
+     *
1498
+     * @since    1.0.0
1499
+     * @access   private
1500
+     */
1501
+    private function define_admin_hooks() {
1502
+
1503
+        $plugin_admin = new Wordlift_Admin(
1504
+            $this->get_plugin_name(),
1505
+            $this->get_version(),
1506
+            $this->configuration_service,
1507
+            $this->notice_service,
1508
+            $this->user_service
1509
+        );
1510
+
1511
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1512
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1513
+
1514
+        // Hook the init action to taxonomy services.
1515
+        $this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1516
+        $this->loader->add_action( 'init', $this->entity_types_taxonomy_service, 'init', 0 );
1517
+
1518
+        // Hook the deleted_post_meta action to the Thumbnail service.
1519
+        $this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1520
+
1521
+        // Hook the added_post_meta action to the Thumbnail service.
1522
+        $this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1523
+
1524
+        // Hook the updated_post_meta action to the Thumbnail service.
1525
+        $this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1526
+
1527
+        // Hook the AJAX wl_timeline action to the Timeline service.
1528
+        $this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1529
+
1530
+        // Register custom allowed redirect hosts.
1531
+        $this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1532
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1533
+        $this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1534
+
1535
+        /*
1536 1536
 		 * The old dashboard is replaced with dashboard v2.
1537 1537
 		 *
1538 1538
 		 * The old dashboard service is still loaded because its functions are used.
@@ -1541,316 +1541,316 @@  discard block
 block discarded – undo
1541 1541
 		 *
1542 1542
 		 * @since 3.20.0
1543 1543
 		 */
1544
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1545
-		// $this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1546
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1547
-		// $this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1548
-
1549
-		// Hook save_post to the entity service to update custom fields (such as alternate labels).
1550
-		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
1551
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1552
-		$this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1553
-
1554
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1555
-		$this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1556
-
1557
-		// Entity listing customization (wp-admin/edit.php)
1558
-		// Add custom columns.
1559
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1560
-		// no explicit entity as it prevents handling of other post types.
1561
-		$this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1562
-		// Add 4W selection.
1563
-		$this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1564
-		$this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1565
-		$this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1566
-		$this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1567
-
1568
-		/*
1544
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1545
+        // $this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1546
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1547
+        // $this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1548
+
1549
+        // Hook save_post to the entity service to update custom fields (such as alternate labels).
1550
+        // We have a priority of 9 because we want to be executed before data is sent to Redlink.
1551
+        $this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1552
+        $this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1553
+
1554
+        $this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1555
+        $this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1556
+
1557
+        // Entity listing customization (wp-admin/edit.php)
1558
+        // Add custom columns.
1559
+        $this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1560
+        // no explicit entity as it prevents handling of other post types.
1561
+        $this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1562
+        // Add 4W selection.
1563
+        $this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1564
+        $this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1565
+        $this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1566
+        $this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1567
+
1568
+        /*
1569 1569
 		 * If `All Entity Types` is disable, use the radio button Walker.
1570 1570
 		 *
1571 1571
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1572 1572
 		 */
1573
-		if ( ! WL_ALL_ENTITY_TYPES ) {
1574
-			$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1575
-		}
1573
+        if ( ! WL_ALL_ENTITY_TYPES ) {
1574
+            $this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1575
+        }
1576 1576
 
1577
-		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1578
-		// entities.
1579
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1577
+        // Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1578
+        // entities.
1579
+        $this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1580 1580
 
1581
-		// Filter imported post meta.
1582
-		$this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1581
+        // Filter imported post meta.
1582
+        $this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1583 1583
 
1584
-		// Notify the import service when an import starts and ends.
1585
-		$this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1586
-		$this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1584
+        // Notify the import service when an import starts and ends.
1585
+        $this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1586
+        $this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1587 1587
 
1588
-		// Hook the AJAX wl_rebuild action to the Rebuild Service.
1589
-		$this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1590
-		$this->loader->add_action( 'wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild' );
1588
+        // Hook the AJAX wl_rebuild action to the Rebuild Service.
1589
+        $this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1590
+        $this->loader->add_action( 'wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild' );
1591 1591
 
1592
-		// Hook the menu to the Download Your Data page.
1593
-		$this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1594
-		$this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1595
-		$this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1596
-		$this->loader->add_action( 'admin_menu', $this->sync_mappings_mockup_page, 'admin_menu', 100, 0 );
1592
+        // Hook the menu to the Download Your Data page.
1593
+        $this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1594
+        $this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1595
+        $this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1596
+        $this->loader->add_action( 'admin_menu', $this->sync_mappings_mockup_page, 'admin_menu', 100, 0 );
1597 1597
 
1598
-		// Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1599
-		$this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1598
+        // Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1599
+        $this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1600 1600
 
1601
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1602
-		$this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1603
-		$this->loader->add_action( 'admin_post_wl_jsonld', $this->jsonld_service, 'get' );
1604
-		$this->loader->add_action( 'admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1601
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1602
+        $this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1603
+        $this->loader->add_action( 'admin_post_wl_jsonld', $this->jsonld_service, 'get' );
1604
+        $this->loader->add_action( 'admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1605 1605
 
1606
-		// Hook the AJAX wl_validate_key action to the Key Validation service.
1607
-		$this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1606
+        // Hook the AJAX wl_validate_key action to the Key Validation service.
1607
+        $this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1608 1608
 
1609
-		// Hook the AJAX wl_update_country_options action to the countries.
1610
-		$this->loader->add_action( 'wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html' );
1609
+        // Hook the AJAX wl_update_country_options action to the countries.
1610
+        $this->loader->add_action( 'wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html' );
1611 1611
 
1612
-		// Hook the `admin_init` function to the Admin Setup.
1613
-		$this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1612
+        // Hook the `admin_init` function to the Admin Setup.
1613
+        $this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1614 1614
 
1615
-		// Hook the admin_init to the settings page.
1616
-		$this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1617
-		$this->loader->add_action( 'admin_init', $this->analytics_settings_page, 'admin_init' );
1615
+        // Hook the admin_init to the settings page.
1616
+        $this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1617
+        $this->loader->add_action( 'admin_init', $this->analytics_settings_page, 'admin_init' );
1618 1618
 
1619
-		$this->loader->add_filter( 'admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction' );
1619
+        $this->loader->add_filter( 'admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction' );
1620 1620
 
1621
-		// Hook the menu creation on the general wordlift menu creation.
1622
-		$this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1623
-		if ( defined( 'WORDLIFT_BATCH' ) && WORDLIFT_BATCH ) {
1624
-			// Add the functionality only if a flag is set in wp-config.php .
1625
-			$this->loader->add_action( 'wl_admin_menu', $this->batch_analysis_page, 'admin_menu', 10, 2 );
1626
-		}
1621
+        // Hook the menu creation on the general wordlift menu creation.
1622
+        $this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1623
+        if ( defined( 'WORDLIFT_BATCH' ) && WORDLIFT_BATCH ) {
1624
+            // Add the functionality only if a flag is set in wp-config.php .
1625
+            $this->loader->add_action( 'wl_admin_menu', $this->batch_analysis_page, 'admin_menu', 10, 2 );
1626
+        }
1627 1627
 
1628
-		/*
1628
+        /*
1629 1629
 		 * Display the `Wordlift_Admin_Search_Rankings_Page` page.
1630 1630
 		 *
1631 1631
 		 * @link https://github.com/insideout10/wordlift-plugin/issues/761
1632 1632
 		 *
1633 1633
 		 * @since 3.20.0
1634 1634
 		 */
1635
-		if ( in_array( $this->configuration_service->get_package_type(), array( 'editorial', 'business' ) ) ) {
1636
-			$admin_search_rankings_page = new Wordlift_Admin_Search_Rankings_Page();
1637
-			$this->loader->add_action( 'wl_admin_menu', $admin_search_rankings_page, 'admin_menu' );
1638
-		}
1635
+        if ( in_array( $this->configuration_service->get_package_type(), array( 'editorial', 'business' ) ) ) {
1636
+            $admin_search_rankings_page = new Wordlift_Admin_Search_Rankings_Page();
1637
+            $this->loader->add_action( 'wl_admin_menu', $admin_search_rankings_page, 'admin_menu' );
1638
+        }
1639 1639
 
1640
-		// Hook key update.
1641
-		$this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1642
-		$this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1640
+        // Hook key update.
1641
+        $this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1642
+        $this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1643 1643
 
1644
-		// Add additional action links to the WordLift plugin in the plugins page.
1645
-		$this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1644
+        // Add additional action links to the WordLift plugin in the plugins page.
1645
+        $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1646 1646
 
1647
-		/*
1647
+        /*
1648 1648
 		 * Remove the Analytics Settings link from the plugin page.
1649 1649
 		 *
1650 1650
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/932
1651 1651
 		 * @since 3.21.1
1652 1652
 		 */
1653
-		// $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->analytics_settings_page_action_link, 'action_links', 10, 1 );
1654
-
1655
-		// Hook the AJAX `wl_publisher` action name.
1656
-		$this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1657
-
1658
-		// Hook row actions for the entity type list admin.
1659
-		$this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1660
-
1661
-		/** Ajax actions. */
1662
-		$this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1663
-
1664
-		// Hook capabilities manipulation to allow access to entity type admin
1665
-		// page  on WordPress versions before 4.7.
1666
-		global $wp_version;
1667
-		if ( version_compare( $wp_version, '4.7', '<' ) ) {
1668
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1669
-		}
1670
-
1671
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1672
-
1673
-		/** Adapters. */
1674
-		$this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1675
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit', $this->batch_analysis_adapter, 'submit' );
1676
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit_posts', $this->batch_analysis_adapter, 'submit_posts' );
1677
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_cancel', $this->batch_analysis_adapter, 'cancel' );
1678
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_clear_warning', $this->batch_analysis_adapter, 'clear_warning' );
1679
-		$this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1680
-
1681
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1682
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1683
-
1684
-
1685
-		$this->loader->add_action( 'update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5 );
1686
-		$this->loader->add_action( 'delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5 );
1687
-
1688
-		// Handle the autocomplete request.
1689
-		add_action( 'wp_ajax_wl_autocomplete', array(
1690
-			$this->autocomplete_adapter,
1691
-			'wl_autocomplete',
1692
-		) );
1693
-		add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1694
-			$this->autocomplete_adapter,
1695
-			'wl_autocomplete',
1696
-		) );
1697
-
1698
-		// Hooks to restrict multisite super admin from manipulating entity types.
1699
-		if ( is_multisite() ) {
1700
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1701
-		}
1702
-
1703
-		$deactivator_feedback = new Wordlift_Deactivator_Feedback( $this->configuration_service );
1704
-
1705
-		add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1706
-		add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1707
-		add_action( 'wp_ajax_wl_deactivation_feedback', array( $deactivator_feedback, 'wl_deactivation_feedback' ) );
1708
-
1709
-		/**
1710
-		 * Always allow the `wordlift/classification` block.
1711
-		 *
1712
-		 * @since 3.23.0
1713
-		 */
1714
-		add_filter( 'allowed_block_types', function ( $value ) {
1715
-
1716
-			if ( true === $value ) {
1717
-				return $value;
1718
-			}
1719
-
1720
-			return array_merge( (array) $value, array( 'wordlift/classification' ) );
1721
-		}, PHP_INT_MAX );
1722
-
1723
-	}
1724
-
1725
-	/**
1726
-	 * Register all of the hooks related to the public-facing functionality
1727
-	 * of the plugin.
1728
-	 *
1729
-	 * @since    1.0.0
1730
-	 * @access   private
1731
-	 */
1732
-	private function define_public_hooks() {
1733
-
1734
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1735
-
1736
-		// Register the entity post type.
1737
-		$this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1738
-		$this->loader->add_action( 'init', $this->install_service, 'install' );
1739
-
1740
-		// Bind the link generation and handling hooks to the entity link service.
1741
-		$this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1742
-		$this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1743
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3 );
1744
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4 );
1745
-
1746
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1747
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1748
-		$this->loader->add_action( 'wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts' );
1749
-
1750
-		// Hook the content filter service to add entity links.
1751
-		if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1752
-			$this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1753
-		}
1754
-
1755
-		// Hook the AJAX wl_timeline action to the Timeline service.
1756
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1757
-
1758
-		// Hook the ShareThis service.
1759
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1760
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1761
-
1762
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1763
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1764
-
1765
-		// Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1766
-		// in order to tweak WP's `WP_Query` to include entities in queries related
1767
-		// to categories.
1768
-		$this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1769
-
1770
-		/*
1653
+        // $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->analytics_settings_page_action_link, 'action_links', 10, 1 );
1654
+
1655
+        // Hook the AJAX `wl_publisher` action name.
1656
+        $this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1657
+
1658
+        // Hook row actions for the entity type list admin.
1659
+        $this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1660
+
1661
+        /** Ajax actions. */
1662
+        $this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1663
+
1664
+        // Hook capabilities manipulation to allow access to entity type admin
1665
+        // page  on WordPress versions before 4.7.
1666
+        global $wp_version;
1667
+        if ( version_compare( $wp_version, '4.7', '<' ) ) {
1668
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1669
+        }
1670
+
1671
+        $this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1672
+
1673
+        /** Adapters. */
1674
+        $this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1675
+        $this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit', $this->batch_analysis_adapter, 'submit' );
1676
+        $this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit_posts', $this->batch_analysis_adapter, 'submit_posts' );
1677
+        $this->loader->add_action( 'wp_ajax_wl_batch_analysis_cancel', $this->batch_analysis_adapter, 'cancel' );
1678
+        $this->loader->add_action( 'wp_ajax_wl_batch_analysis_clear_warning', $this->batch_analysis_adapter, 'clear_warning' );
1679
+        $this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1680
+
1681
+        $this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1682
+        $this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1683
+
1684
+
1685
+        $this->loader->add_action( 'update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5 );
1686
+        $this->loader->add_action( 'delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5 );
1687
+
1688
+        // Handle the autocomplete request.
1689
+        add_action( 'wp_ajax_wl_autocomplete', array(
1690
+            $this->autocomplete_adapter,
1691
+            'wl_autocomplete',
1692
+        ) );
1693
+        add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1694
+            $this->autocomplete_adapter,
1695
+            'wl_autocomplete',
1696
+        ) );
1697
+
1698
+        // Hooks to restrict multisite super admin from manipulating entity types.
1699
+        if ( is_multisite() ) {
1700
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1701
+        }
1702
+
1703
+        $deactivator_feedback = new Wordlift_Deactivator_Feedback( $this->configuration_service );
1704
+
1705
+        add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1706
+        add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1707
+        add_action( 'wp_ajax_wl_deactivation_feedback', array( $deactivator_feedback, 'wl_deactivation_feedback' ) );
1708
+
1709
+        /**
1710
+         * Always allow the `wordlift/classification` block.
1711
+         *
1712
+         * @since 3.23.0
1713
+         */
1714
+        add_filter( 'allowed_block_types', function ( $value ) {
1715
+
1716
+            if ( true === $value ) {
1717
+                return $value;
1718
+            }
1719
+
1720
+            return array_merge( (array) $value, array( 'wordlift/classification' ) );
1721
+        }, PHP_INT_MAX );
1722
+
1723
+    }
1724
+
1725
+    /**
1726
+     * Register all of the hooks related to the public-facing functionality
1727
+     * of the plugin.
1728
+     *
1729
+     * @since    1.0.0
1730
+     * @access   private
1731
+     */
1732
+    private function define_public_hooks() {
1733
+
1734
+        $plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1735
+
1736
+        // Register the entity post type.
1737
+        $this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1738
+        $this->loader->add_action( 'init', $this->install_service, 'install' );
1739
+
1740
+        // Bind the link generation and handling hooks to the entity link service.
1741
+        $this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1742
+        $this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1743
+        $this->loader->add_filter( 'wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3 );
1744
+        $this->loader->add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4 );
1745
+
1746
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1747
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1748
+        $this->loader->add_action( 'wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts' );
1749
+
1750
+        // Hook the content filter service to add entity links.
1751
+        if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1752
+            $this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1753
+        }
1754
+
1755
+        // Hook the AJAX wl_timeline action to the Timeline service.
1756
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1757
+
1758
+        // Hook the ShareThis service.
1759
+        $this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1760
+        $this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1761
+
1762
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1763
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1764
+
1765
+        // Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1766
+        // in order to tweak WP's `WP_Query` to include entities in queries related
1767
+        // to categories.
1768
+        $this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1769
+
1770
+        /*
1771 1771
 		 * Hook the `pre_get_posts` action to the `Wordlift_Entity_Page_Service`
1772 1772
 		 * in order to tweak WP's `WP_Query` to show event related entities in reverse
1773 1773
 		 * order of start time.
1774 1774
 		 */
1775
-		$this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
1776
-
1777
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1778
-
1779
-		// This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1780
-		$this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
1781
-
1782
-		// Analytics Script Frontend.
1783
-		if ( $this->configuration_service->is_analytics_enable() ) {
1784
-			$this->loader->add_action( 'wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10 );
1785
-		}
1786
-
1787
-	}
1788
-
1789
-	/**
1790
-	 * Run the loader to execute all of the hooks with WordPress.
1791
-	 *
1792
-	 * @since    1.0.0
1793
-	 */
1794
-	public function run() {
1795
-		$this->loader->run();
1796
-	}
1797
-
1798
-	/**
1799
-	 * The name of the plugin used to uniquely identify it within the context of
1800
-	 * WordPress and to define internationalization functionality.
1801
-	 *
1802
-	 * @return    string    The name of the plugin.
1803
-	 * @since     1.0.0
1804
-	 */
1805
-	public function get_plugin_name() {
1806
-		return $this->plugin_name;
1807
-	}
1808
-
1809
-	/**
1810
-	 * The reference to the class that orchestrates the hooks with the plugin.
1811
-	 *
1812
-	 * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
1813
-	 * @since     1.0.0
1814
-	 */
1815
-	public function get_loader() {
1816
-		return $this->loader;
1817
-	}
1818
-
1819
-	/**
1820
-	 * Retrieve the version number of the plugin.
1821
-	 *
1822
-	 * @return    string    The version number of the plugin.
1823
-	 * @since     1.0.0
1824
-	 */
1825
-	public function get_version() {
1826
-		return $this->version;
1827
-	}
1828
-
1829
-	/**
1830
-	 * Load dependencies for WP-CLI.
1831
-	 *
1832
-	 * @throws Exception
1833
-	 * @since 3.18.0
1834
-	 */
1835
-	private function load_cli_dependencies() {
1836
-
1837
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cli/class-wordlift-push-reference-data-command.php';
1838
-
1839
-		$push_reference_data_command = new Wordlift_Push_Reference_Data_Command( $this->relation_service, $this->entity_service, $this->sparql_service, $this->configuration_service, $this->entity_type_service );
1840
-
1841
-		WP_CLI::add_command( 'wl references push', $push_reference_data_command );
1842
-
1843
-	}
1844
-
1845
-	/**
1846
-	 * Get the {@link \Wordlift_Dashboard_Service} to allow others to use its functions.
1847
-	 *
1848
-	 * @return \Wordlift_Dashboard_Service The {@link \Wordlift_Dashboard_Service} instance.
1849
-	 * @since 3.20.0
1850
-	 */
1851
-	public function get_dashboard_service() {
1852
-
1853
-		return $this->dashboard_service;
1854
-	}
1775
+        $this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
1776
+
1777
+        $this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1778
+
1779
+        // This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1780
+        $this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
1781
+
1782
+        // Analytics Script Frontend.
1783
+        if ( $this->configuration_service->is_analytics_enable() ) {
1784
+            $this->loader->add_action( 'wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10 );
1785
+        }
1786
+
1787
+    }
1788
+
1789
+    /**
1790
+     * Run the loader to execute all of the hooks with WordPress.
1791
+     *
1792
+     * @since    1.0.0
1793
+     */
1794
+    public function run() {
1795
+        $this->loader->run();
1796
+    }
1797
+
1798
+    /**
1799
+     * The name of the plugin used to uniquely identify it within the context of
1800
+     * WordPress and to define internationalization functionality.
1801
+     *
1802
+     * @return    string    The name of the plugin.
1803
+     * @since     1.0.0
1804
+     */
1805
+    public function get_plugin_name() {
1806
+        return $this->plugin_name;
1807
+    }
1808
+
1809
+    /**
1810
+     * The reference to the class that orchestrates the hooks with the plugin.
1811
+     *
1812
+     * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
1813
+     * @since     1.0.0
1814
+     */
1815
+    public function get_loader() {
1816
+        return $this->loader;
1817
+    }
1818
+
1819
+    /**
1820
+     * Retrieve the version number of the plugin.
1821
+     *
1822
+     * @return    string    The version number of the plugin.
1823
+     * @since     1.0.0
1824
+     */
1825
+    public function get_version() {
1826
+        return $this->version;
1827
+    }
1828
+
1829
+    /**
1830
+     * Load dependencies for WP-CLI.
1831
+     *
1832
+     * @throws Exception
1833
+     * @since 3.18.0
1834
+     */
1835
+    private function load_cli_dependencies() {
1836
+
1837
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cli/class-wordlift-push-reference-data-command.php';
1838
+
1839
+        $push_reference_data_command = new Wordlift_Push_Reference_Data_Command( $this->relation_service, $this->entity_service, $this->sparql_service, $this->configuration_service, $this->entity_type_service );
1840
+
1841
+        WP_CLI::add_command( 'wl references push', $push_reference_data_command );
1842
+
1843
+    }
1844
+
1845
+    /**
1846
+     * Get the {@link \Wordlift_Dashboard_Service} to allow others to use its functions.
1847
+     *
1848
+     * @return \Wordlift_Dashboard_Service The {@link \Wordlift_Dashboard_Service} instance.
1849
+     * @since 3.20.0
1850
+     */
1851
+    public function get_dashboard_service() {
1852
+
1853
+        return $this->dashboard_service;
1854
+    }
1855 1855
 
1856 1856
 }
Please login to merge, or discard this patch.
Spacing   +334 added lines, -334 removed lines patch added patch discarded remove patch
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
 		$this->define_public_hooks();
758 758
 
759 759
 		// If we're in `WP_CLI` load the related files.
760
-		if ( class_exists( 'WP_CLI' ) ) {
760
+		if (class_exists('WP_CLI')) {
761 761
 			$this->load_cli_dependencies();
762 762
 		}
763 763
 
@@ -797,388 +797,388 @@  discard block
 block discarded – undo
797 797
 		 * The class responsible for orchestrating the actions and filters of the
798 798
 		 * core plugin.
799 799
 		 */
800
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
800
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-loader.php';
801 801
 
802 802
 		// The class responsible for plugin uninstall.
803
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-deactivator-feedback.php';
803
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-deactivator-feedback.php';
804 804
 
805 805
 		/**
806 806
 		 * The class responsible for defining internationalization functionality
807 807
 		 * of the plugin.
808 808
 		 */
809
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
809
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-i18n.php';
810 810
 
811 811
 		/**
812 812
 		 * WordLift's supported languages.
813 813
 		 */
814
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
814
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-languages.php';
815 815
 
816 816
 		/**
817 817
 		 * WordLift's supported countries.
818 818
 		 */
819
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-countries.php';
819
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-countries.php';
820 820
 
821 821
 		/**
822 822
 		 * Provide support functions to sanitize data.
823 823
 		 */
824
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
824
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-sanitizer.php';
825 825
 
826 826
 		/** Services. */
827
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
828
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
829
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
830
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
831
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
832
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
833
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
834
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
835
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
836
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-image-service.php';
827
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-log-service.php';
828
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-http-api.php';
829
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-redirect-service.php';
830
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-configuration-service.php';
831
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-post-type-service.php';
832
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-type-service.php';
833
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-link-service.php';
834
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-linked-data-service.php';
835
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-relation-service.php';
836
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-image-service.php';
837 837
 
838 838
 		/**
839 839
 		 * The Query builder.
840 840
 		 */
841
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
841
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-query-builder.php';
842 842
 
843 843
 		/**
844 844
 		 * The Schema service.
845 845
 		 */
846
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
846
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-schema-service.php';
847 847
 
848 848
 		/**
849 849
 		 * The schema:url property service.
850 850
 		 */
851
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
852
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
851
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-property-service.php';
852
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-schema-url-property-service.php';
853 853
 
854 854
 		/**
855 855
 		 * The UI service.
856 856
 		 */
857
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
857
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-ui-service.php';
858 858
 
859 859
 		/**
860 860
 		 * The Thumbnail service.
861 861
 		 */
862
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
862
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-thumbnail-service.php';
863 863
 
864 864
 		/**
865 865
 		 * The Entity Types Taxonomy service.
866 866
 		 */
867
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
867
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-type-taxonomy-service.php';
868 868
 
869 869
 		/**
870 870
 		 * The Entity service.
871 871
 		 */
872
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
873
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
872
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-uri-service.php';
873
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-service.php';
874 874
 
875 875
 		// Add the entity rating service.
876
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
876
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-rating-service.php';
877 877
 
878 878
 		/**
879 879
 		 * The User service.
880 880
 		 */
881
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
881
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-user-service.php';
882 882
 
883 883
 		/**
884 884
 		 * The Timeline service.
885 885
 		 */
886
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
886
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-timeline-service.php';
887 887
 
888 888
 		/**
889 889
 		 * The Topic Taxonomy service.
890 890
 		 */
891
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
891
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-topic-taxonomy-service.php';
892 892
 
893 893
 		/**
894 894
 		 * The SPARQL service.
895 895
 		 */
896
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
896
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-sparql-service.php';
897 897
 
898 898
 		/**
899 899
 		 * The WordLift import service.
900 900
 		 */
901
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
901
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-import-service.php';
902 902
 
903 903
 		/**
904 904
 		 * The WordLift URI service.
905 905
 		 */
906
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
907
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
908
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
906
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-uri-service.php';
907
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-property-factory.php';
908
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-sample-data-service.php';
909 909
 
910 910
 		/**
911 911
 		 * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
912 912
 		 */
913
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-listable.php';
914
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-rebuild-service.php';
915
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-reference-rebuild-service.php';
916
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-service.php';
917
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
913
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-listable.php';
914
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-rebuild-service.php';
915
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-reference-rebuild-service.php';
916
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-relation-rebuild-service.php';
917
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
918 918
 
919
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
920
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
919
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/properties/class-wordlift-property-getter-factory.php';
920
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-attachment-service.php';
921 921
 
922 922
 		/**
923 923
 		 * Load the converters.
924 924
 		 */
925
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
926
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
927
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
928
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
929
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
930
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
925
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/intf-wordlift-post-converter.php';
926
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
927
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-postid-to-jsonld-converter.php';
928
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-post-to-jsonld-converter.php';
929
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-post-to-jsonld-converter.php';
930
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-jsonld-website-converter.php';
931 931
 
932 932
 		/**
933 933
 		 * Load cache-related files.
934 934
 		 */
935
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
935
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/cache/require.php';
936 936
 
937 937
 		/**
938 938
 		 * Load the content filter.
939 939
 		 */
940
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
940
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-content-filter-service.php';
941 941
 
942 942
 		/*
943 943
 		 * Load the excerpt helper.
944 944
 		 */
945
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
945
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-post-excerpt-helper.php';
946 946
 
947 947
 		/**
948 948
 		 * Load the JSON-LD service to publish entities using JSON-LD.s
949 949
 		 *
950 950
 		 * @since 3.8.0
951 951
 		 */
952
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
952
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-jsonld-service.php';
953 953
 
954 954
 		// The Publisher Service and the AJAX adapter.
955
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
956
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
955
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-publisher-service.php';
956
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-publisher-ajax-adapter.php';
957 957
 
958
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
958
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-post-adapter.php';
959 959
 
960 960
 		/**
961 961
 		 * Load the WordLift key validation service.
962 962
 		 */
963
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
963
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-key-validation-service.php';
964 964
 
965 965
 		// Load the `Wordlift_Category_Taxonomy_Service` class definition.
966
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
966
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-category-taxonomy-service.php';
967 967
 
968 968
 		// Load the `Wordlift_Entity_Page_Service` class definition.
969
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
970
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-sql-helper.php';
971
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-service.php';
969
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-page-service.php';
970
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/batch-analysis/class-wordlift-batch-analysis-sql-helper.php';
971
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/batch-analysis/class-wordlift-batch-analysis-service.php';
972 972
 
973 973
 		/** Linked Data. */
974
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
975
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
976
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
977
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
978
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
979
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
980
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
981
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
982
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
983
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
984
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
974
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-storage.php';
975
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
976
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-property-storage.php';
977
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
978
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
979
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-author-storage.php';
980
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
981
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-image-storage.php';
982
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-post-related-storage.php';
983
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-url-property-storage.php';
984
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/storage/class-wordlift-storage-factory.php';
985 985
 
986 986
 		/** Linked Data Rendition. */
987
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
988
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
989
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
990
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
987
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
988
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
989
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
990
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
991 991
 
992 992
 		/** Services. */
993
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
994
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-api-service.php';
995
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'install/class-wordlift-install-service.php';
993
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-google-analytics-export-service.php';
994
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-api-service.php';
995
+		require_once plugin_dir_path(dirname(__FILE__)).'install/class-wordlift-install-service.php';
996 996
 
997 997
 		/** Adapters. */
998
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
999
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
1000
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
1001
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
1002
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch-analysis/class-wordlift-batch-analysis-adapter.php';
1003
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-wprocket-adapter.php';
998
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-tinymce-adapter.php';
999
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-newrelic-adapter.php';
1000
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-sample-data-ajax-adapter.php';
1001
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-entity-type-adapter.php';
1002
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/batch-analysis/class-wordlift-batch-analysis-adapter.php';
1003
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-wprocket-adapter.php';
1004 1004
 
1005 1005
 		/** Async Tasks. */
1006
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
1007
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1008
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-request-async-task.php';
1009
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-batch-analysis-complete-async-task.php';
1010
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1006
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/wp-async-task/class-wordlift-async-task.php';
1007
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1008
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/wp-async-task/class-wordlift-batch-analysis-request-async-task.php';
1009
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/wp-async-task/class-wordlift-batch-analysis-complete-async-task.php';
1010
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1011 1011
 
1012 1012
 		/** Autocomplete. */
1013
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-service.php';
1014
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
1013
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-autocomplete-service.php';
1014
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-autocomplete-adapter.php';
1015 1015
 
1016
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-remote-image-service.php';
1016
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-remote-image-service.php';
1017 1017
 
1018 1018
 		/** Analytics */
1019
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/analytics/class-wordlift-analytics-connect.php';
1019
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/analytics/class-wordlift-analytics-connect.php';
1020 1020
 
1021 1021
 		/**
1022 1022
 		 * The class responsible for defining all actions that occur in the admin area.
1023 1023
 		 */
1024
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
1024
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin.php';
1025 1025
 
1026 1026
 		/**
1027 1027
 		 * The class to customize the entity list admin page.
1028 1028
 		 */
1029
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
1029
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-entity-list.php';
1030 1030
 
1031 1031
 		/**
1032 1032
 		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
1033 1033
 		 */
1034 1034
 		global $wp_version;
1035
-		if ( version_compare( $wp_version, '5.3', '<' ) ) {
1036
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
1035
+		if (version_compare($wp_version, '5.3', '<')) {
1036
+			require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-types-taxonomy-walker.php';
1037 1037
 		} else {
1038
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1038
+			require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1039 1039
 		}
1040 1040
 
1041 1041
 		/**
1042 1042
 		 * The Notice service.
1043 1043
 		 */
1044
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
1044
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-notice-service.php';
1045 1045
 
1046 1046
 		/**
1047 1047
 		 * The PrimaShop adapter.
1048 1048
 		 */
1049
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
1049
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-primashop-adapter.php';
1050 1050
 
1051 1051
 		/**
1052 1052
 		 * The WordLift Dashboard service.
1053 1053
 		 */
1054
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
1054
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-dashboard.php';
1055 1055
 
1056 1056
 		/**
1057 1057
 		 * The admin 'Install wizard' page.
1058 1058
 		 */
1059
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
1059
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-setup.php';
1060 1060
 
1061 1061
 		/**
1062 1062
 		 * The WordLift entity type list admin page controller.
1063 1063
 		 */
1064
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1064
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1065 1065
 
1066 1066
 		/**
1067 1067
 		 * The WordLift entity type settings admin page controller.
1068 1068
 		 */
1069
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
1069
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-type-settings.php';
1070 1070
 
1071 1071
 		/**
1072 1072
 		 * The admin 'Download Your Data' page.
1073 1073
 		 */
1074
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
1074
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-download-your-data-page.php';
1075 1075
 
1076 1076
 		/**
1077 1077
 		 * The admin 'WordLift Settings' page.
1078 1078
 		 */
1079
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/intf-wordlift-admin-element.php';
1080
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-element.php';
1081
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-radio-element.php';
1082
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select-element.php';
1083
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select2-element.php';
1084
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
1085
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
1086
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
1087
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-author-element.php';
1088
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
1089
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
1090
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
1091
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
1092
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-batch-analysis-page.php';
1093
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
1094
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1079
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/intf-wordlift-admin-element.php';
1080
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-input-element.php';
1081
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-input-radio-element.php';
1082
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-select-element.php';
1083
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-select2-element.php';
1084
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-language-select-element.php';
1085
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-country-select-element.php';
1086
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-tabs-element.php';
1087
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-author-element.php';
1088
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/elements/class-wordlift-admin-publisher-element.php';
1089
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-page.php';
1090
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-settings-page.php';
1091
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-settings-analytics-page.php';
1092
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-batch-analysis-page.php';
1093
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-settings-page-action-link.php';
1094
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1095 1095
 
1096 1096
 		/** Admin Pages */
1097
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
1098
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
1099
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-search-rankings-page.php';
1100
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
1097
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-user-profile-page.php';
1098
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-status-page.php';
1099
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-search-rankings-page.php';
1100
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-entity-type-admin-service.php';
1101 1101
 		/**
1102 1102
 		 * The class responsible for providing mockup for sync mappings
1103 1103
 		 */
1104
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-mappings-mockup-page.php';
1104
+		require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-mappings-mockup-page.php';
1105 1105
 
1106 1106
 		/**
1107 1107
 		 * The class responsible for defining all actions that occur in the public-facing
1108 1108
 		 * side of the site.
1109 1109
 		 */
1110
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
1110
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-public.php';
1111 1111
 
1112 1112
 		/**
1113 1113
 		 * The shortcode abstract class.
1114 1114
 		 */
1115
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1115
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-shortcode.php';
1116 1116
 
1117 1117
 		/**
1118 1118
 		 * The Timeline shortcode.
1119 1119
 		 */
1120
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1120
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-timeline-shortcode.php';
1121 1121
 
1122 1122
 		/**
1123 1123
 		 * The Navigator shortcode.
1124 1124
 		 */
1125
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1125
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-navigator-shortcode.php';
1126 1126
 
1127 1127
 		/**
1128 1128
 		 * The chord shortcode.
1129 1129
 		 */
1130
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1130
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-chord-shortcode.php';
1131 1131
 
1132 1132
 		/**
1133 1133
 		 * The geomap shortcode.
1134 1134
 		 */
1135
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1135
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-geomap-shortcode.php';
1136 1136
 
1137 1137
 		/**
1138 1138
 		 * The entity cloud shortcode.
1139 1139
 		 */
1140
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1140
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-related-entities-cloud-shortcode.php';
1141 1141
 
1142 1142
 		/**
1143 1143
 		 * The entity glossary shortcode.
1144 1144
 		 */
1145
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1146
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1145
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-alphabet-service.php';
1146
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-vocabulary-shortcode.php';
1147 1147
 
1148 1148
 		/**
1149 1149
 		 * Faceted Search shortcode.
1150 1150
 		 */
1151
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-faceted-search-shortcode.php';
1151
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-faceted-search-shortcode.php';
1152 1152
 
1153 1153
 		/**
1154 1154
 		 * The ShareThis service.
1155 1155
 		 */
1156
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1156
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-sharethis-service.php';
1157 1157
 
1158 1158
 		/**
1159 1159
 		 * The SEO service.
1160 1160
 		 */
1161
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1161
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-seo-service.php';
1162 1162
 
1163 1163
 		/**
1164 1164
 		 * The AMP service.
1165 1165
 		 */
1166
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1166
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-amp-service.php';
1167 1167
 
1168 1168
 		/** Widgets */
1169
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1170
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1171
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-context-cards.php';
1169
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-widget.php';
1170
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-related-entities-cloud-widget.php';
1171
+		require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-context-cards.php';
1172 1172
 
1173 1173
 		/*
1174 1174
 		 * Schema.org Services.
1175 1175
 		 *
1176 1176
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1177 1177
 		 */
1178
-		if ( WL_ALL_ENTITY_TYPES ) {
1179
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1180
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1181
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1178
+		if (WL_ALL_ENTITY_TYPES) {
1179
+			require_once plugin_dir_path(dirname(__FILE__)).'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1180
+			require_once plugin_dir_path(dirname(__FILE__)).'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1181
+			require_once plugin_dir_path(dirname(__FILE__)).'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1182 1182
 			new Wordlift_Schemaorg_Sync_Service();
1183 1183
 			$schemaorg_property_service = new Wordlift_Schemaorg_Property_Service();
1184 1184
 			new Wordlift_Schemaorg_Class_Service();
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
 
1191 1191
 		// Instantiate a global logger.
1192 1192
 		global $wl_logger;
1193
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1193
+		$wl_logger = Wordlift_Log_Service::get_logger('WordLift');
1194 1194
 
1195 1195
 		// Load the `wl-api` end-point.
1196 1196
 		new Wordlift_Http_Api();
@@ -1201,13 +1201,13 @@  discard block
 block discarded – undo
1201 1201
 		/** Services. */
1202 1202
 		// Create the configuration service.
1203 1203
 		$this->configuration_service = new Wordlift_Configuration_Service();
1204
-		$api_service                 = new Wordlift_Api_Service( $this->configuration_service );
1204
+		$api_service                 = new Wordlift_Api_Service($this->configuration_service);
1205 1205
 
1206 1206
 		// Create an entity type service instance. It'll be later bound to the init action.
1207
-		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1207
+		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service(Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path());
1208 1208
 
1209 1209
 		// Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1210
-		$this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1210
+		$this->entity_link_service = new Wordlift_Entity_Link_Service($this->entity_post_type_service, $this->configuration_service->get_entity_base_path());
1211 1211
 
1212 1212
 		// Create an instance of the UI service.
1213 1213
 		$this->ui_service = new Wordlift_UI_Service();
@@ -1216,34 +1216,34 @@  discard block
 block discarded – undo
1216 1216
 		$this->thumbnail_service = new Wordlift_Thumbnail_Service();
1217 1217
 
1218 1218
 		$this->sparql_service        = new Wordlift_Sparql_Service();
1219
-		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1219
+		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service($this->sparql_service);
1220 1220
 		$this->notice_service        = new Wordlift_Notice_Service();
1221 1221
 		$this->relation_service      = new Wordlift_Relation_Service();
1222 1222
 
1223
-		$entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1224
-		$this->file_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'converter/' );
1225
-		$this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1226
-		$this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1227
-		$this->user_service       = new Wordlift_User_Service( $this->sparql_service, $this->entity_service );
1223
+		$entity_uri_cache_service = new Wordlift_File_Cache_Service(WL_TEMP_DIR.'entity_uri/');
1224
+		$this->file_cache_service = new Wordlift_File_Cache_Service(WL_TEMP_DIR.'converter/');
1225
+		$this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service($this->configuration_service, $entity_uri_cache_service);
1226
+		$this->entity_service     = new Wordlift_Entity_Service($this->ui_service, $this->relation_service, $this->entity_uri_service);
1227
+		$this->user_service       = new Wordlift_User_Service($this->sparql_service, $this->entity_service);
1228 1228
 
1229 1229
 		// Instantiate the JSON-LD service.
1230
-		$property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1230
+		$property_getter = Wordlift_Property_Getter_Factory::create($this->entity_service);
1231 1231
 
1232 1232
 		/** Linked Data. */
1233
-		$this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1234
-		$this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1233
+		$this->storage_factory   = new Wordlift_Storage_Factory($this->entity_service, $this->user_service, $property_getter);
1234
+		$this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory($this->entity_service);
1235 1235
 
1236
-		$this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1236
+		$this->schema_service = new Wordlift_Schema_Service($this->storage_factory, $this->rendition_factory, $this->configuration_service);
1237 1237
 
1238 1238
 		// Create a new instance of the Redirect service.
1239
-		$this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_uri_service );
1240
-		$this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1241
-		$this->linked_data_service = new Wordlift_Linked_Data_Service( $this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service );
1239
+		$this->redirect_service    = new Wordlift_Redirect_Service($this->entity_uri_service);
1240
+		$this->entity_type_service = new Wordlift_Entity_Type_Service($this->schema_service);
1241
+		$this->linked_data_service = new Wordlift_Linked_Data_Service($this->entity_service, $this->entity_type_service, $this->schema_service, $this->sparql_service);
1242 1242
 
1243 1243
 		// Create a new instance of the Timeline service and Timeline shortcode.
1244
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1244
+		$this->timeline_service = new Wordlift_Timeline_Service($this->entity_service, $this->entity_type_service);
1245 1245
 
1246
-		$this->batch_analysis_service = new Wordlift_Batch_Analysis_Service( $this, $this->configuration_service, $this->file_cache_service );
1246
+		$this->batch_analysis_service = new Wordlift_Batch_Analysis_Service($this, $this->configuration_service, $this->file_cache_service);
1247 1247
 
1248 1248
 		$this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1249 1249
 
@@ -1257,68 +1257,68 @@  discard block
 block discarded – undo
1257 1257
 		$this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1258 1258
 
1259 1259
 		// Create an import service instance to hook later to WP's import function.
1260
-		$this->import_service = new Wordlift_Import_Service( $this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri() );
1260
+		$this->import_service = new Wordlift_Import_Service($this->entity_post_type_service, $this->entity_service, $this->schema_service, $this->sparql_service, $this->configuration_service->get_dataset_uri());
1261 1261
 
1262
-		$uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1262
+		$uri_service = new Wordlift_Uri_Service($GLOBALS['wpdb']);
1263 1263
 
1264 1264
 		// Create the entity rating service.
1265
-		$this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1265
+		$this->rating_service = new Wordlift_Rating_Service($this->entity_service, $this->entity_type_service, $this->notice_service);
1266 1266
 
1267 1267
 		// Create entity list customization (wp-admin/edit.php).
1268
-		$this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1268
+		$this->entity_list_service = new Wordlift_Entity_List_Service($this->rating_service);
1269 1269
 
1270 1270
 		// Create a new instance of the Redirect service.
1271
-		$this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1271
+		$this->dashboard_service = new Wordlift_Dashboard_Service($this->rating_service, $this->entity_service);
1272 1272
 
1273 1273
 		// Create an instance of the Publisher Service and the AJAX Adapter.
1274
-		$this->publisher_service = new Wordlift_Publisher_Service( $this->configuration_service );
1275
-		$this->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1276
-		$this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1274
+		$this->publisher_service = new Wordlift_Publisher_Service($this->configuration_service);
1275
+		$this->property_factory  = new Wordlift_Property_Factory($schema_url_property_service);
1276
+		$this->property_factory->register(Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service);
1277 1277
 
1278 1278
 		$attachment_service = new Wordlift_Attachment_Service();
1279 1279
 
1280 1280
 		// Instantiate the JSON-LD service.
1281
-		$property_getter                         = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1282
-		$this->entity_post_to_jsonld_converter   = new Wordlift_Entity_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter, $schemaorg_property_service );
1283
-		$this->post_to_jsonld_converter          = new Wordlift_Post_To_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1284
-		$this->postid_to_jsonld_converter        = new Wordlift_Postid_To_Jsonld_Converter( $this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter );
1285
-		$this->jsonld_website_converter          = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1286
-		$this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->file_cache_service, $this->configuration_service );
1287
-		$this->jsonld_service                    = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter );
1288
-
1289
-
1290
-		$this->key_validation_service    = new Wordlift_Key_Validation_Service( $this->configuration_service );
1291
-		$this->content_filter_service    = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1292
-		$this->relation_rebuild_service  = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1293
-		$this->sample_data_service       = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1294
-		$this->sample_data_ajax_adapter  = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1295
-		$this->reference_rebuild_service = new Wordlift_Reference_Rebuild_Service( $this->linked_data_service, $this->entity_service, $this->relation_service );
1281
+		$property_getter                         = Wordlift_Property_Getter_Factory::create($this->entity_service);
1282
+		$this->entity_post_to_jsonld_converter   = new Wordlift_Entity_Post_To_Jsonld_Converter($this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $property_getter, $schemaorg_property_service);
1283
+		$this->post_to_jsonld_converter          = new Wordlift_Post_To_Jsonld_Converter($this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service);
1284
+		$this->postid_to_jsonld_converter        = new Wordlift_Postid_To_Jsonld_Converter($this->entity_service, $this->entity_post_to_jsonld_converter, $this->post_to_jsonld_converter);
1285
+		$this->jsonld_website_converter          = new Wordlift_Website_Jsonld_Converter($this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service);
1286
+		$this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter($this->postid_to_jsonld_converter, $this->file_cache_service, $this->configuration_service);
1287
+		$this->jsonld_service                    = new Wordlift_Jsonld_Service($this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter);
1288
+
1289
+
1290
+		$this->key_validation_service    = new Wordlift_Key_Validation_Service($this->configuration_service);
1291
+		$this->content_filter_service    = new Wordlift_Content_Filter_Service($this->entity_service, $this->configuration_service, $this->entity_uri_service);
1292
+		$this->relation_rebuild_service  = new Wordlift_Relation_Rebuild_Service($this->content_filter_service, $this->entity_service);
1293
+		$this->sample_data_service       = new Wordlift_Sample_Data_Service($this->entity_type_service, $this->configuration_service, $this->user_service);
1294
+		$this->sample_data_ajax_adapter  = new Wordlift_Sample_Data_Ajax_Adapter($this->sample_data_service);
1295
+		$this->reference_rebuild_service = new Wordlift_Reference_Rebuild_Service($this->linked_data_service, $this->entity_service, $this->relation_service);
1296 1296
 
1297 1297
 		// Initialize the shortcodes.
1298 1298
 		new Wordlift_Navigator_Shortcode();
1299 1299
 		new Wordlift_Chord_Shortcode();
1300 1300
 		new Wordlift_Geomap_Shortcode();
1301 1301
 		new Wordlift_Timeline_Shortcode();
1302
-		new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service );
1303
-		new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1302
+		new Wordlift_Related_Entities_Cloud_Shortcode($this->relation_service);
1303
+		new Wordlift_Vocabulary_Shortcode($this->configuration_service);
1304 1304
 		new Wordlift_Faceted_Search_Shortcode();
1305 1305
 
1306 1306
 		// Initialize the SEO service.
1307 1307
 		new Wordlift_Seo_Service();
1308 1308
 
1309 1309
 		// Initialize the AMP service.
1310
-		new Wordlift_AMP_Service( $this->jsonld_service );
1310
+		new Wordlift_AMP_Service($this->jsonld_service);
1311 1311
 
1312 1312
 		/** Services. */
1313 1313
 		$this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1314 1314
 		new Wordlift_Image_Service();
1315 1315
 
1316 1316
 		/** Adapters. */
1317
-		$this->entity_type_adapter      = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1318
-		$this->publisher_ajax_adapter   = new Wordlift_Publisher_Ajax_Adapter( $this->publisher_service );
1319
-		$this->tinymce_adapter          = new Wordlift_Tinymce_Adapter( $this );
1320
-		$this->batch_analysis_adapter   = new Wordlift_Batch_Analysis_Adapter( $this->batch_analysis_service );
1321
-		$this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1317
+		$this->entity_type_adapter      = new Wordlift_Entity_Type_Adapter($this->entity_type_service);
1318
+		$this->publisher_ajax_adapter   = new Wordlift_Publisher_Ajax_Adapter($this->publisher_service);
1319
+		$this->tinymce_adapter          = new Wordlift_Tinymce_Adapter($this);
1320
+		$this->batch_analysis_adapter   = new Wordlift_Batch_Analysis_Adapter($this->batch_analysis_service);
1321
+		$this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter($this->relation_rebuild_service);
1322 1322
 
1323 1323
 		/*
1324 1324
 		 * Exclude our public js from WP-Rocket.
@@ -1342,8 +1342,8 @@  discard block
 block discarded – undo
1342 1342
 		new Wordlift_Push_References_Async_Task();
1343 1343
 
1344 1344
 		/** WL Autocomplete. */
1345
-		$this->autocomplete_service = new Wordlift_Autocomplete_Service( $this->configuration_service );
1346
-		$this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $this->autocomplete_service );
1345
+		$this->autocomplete_service = new Wordlift_Autocomplete_Service($this->configuration_service);
1346
+		$this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter($this->autocomplete_service);
1347 1347
 
1348 1348
 		/** WordPress Admin UI. */
1349 1349
 
@@ -1354,15 +1354,15 @@  discard block
 block discarded – undo
1354 1354
 		$this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1355 1355
 		$this->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1356 1356
 		$tabs_element                  = new Wordlift_Admin_Tabs_Element();
1357
-		$this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element );
1358
-		$this->author_element          = new Wordlift_Admin_Author_Element( $this->publisher_service, $this->select2_element );
1357
+		$this->publisher_element       = new Wordlift_Admin_Publisher_Element($this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element);
1358
+		$this->author_element          = new Wordlift_Admin_Author_Element($this->publisher_service, $this->select2_element);
1359 1359
 
1360
-		$this->settings_page             = new Wordlift_Admin_Settings_Page( $this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->country_select_element, $this->publisher_element, $this->radio_input_element );
1361
-		$this->batch_analysis_page       = new Wordlift_Batch_Analysis_Page( $this->batch_analysis_service );
1362
-		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1360
+		$this->settings_page             = new Wordlift_Admin_Settings_Page($this->configuration_service, $this->entity_service, $this->input_element, $this->language_select_element, $this->country_select_element, $this->publisher_element, $this->radio_input_element);
1361
+		$this->batch_analysis_page       = new Wordlift_Batch_Analysis_Page($this->batch_analysis_service);
1362
+		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link($this->settings_page);
1363 1363
 
1364
-		$this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $this->configuration_service, $this->input_element, $this->radio_input_element );
1365
-		$this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $this->analytics_settings_page );
1364
+		$this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page($this->configuration_service, $this->input_element, $this->radio_input_element);
1365
+		$this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link($this->analytics_settings_page);
1366 1366
 		$this->analytics_connect                   = new Wordlift_Analytics_Connect();
1367 1367
 
1368 1368
 		// Pages.
@@ -1373,9 +1373,9 @@  discard block
 block discarded – undo
1373 1373
 		 *
1374 1374
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/914
1375 1375
 		 */
1376
-		if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1377
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
1378
-			new Wordlift_Admin_Post_Edit_Page( $this );
1376
+		if (apply_filters('wl_can_see_classification_box', true)) {
1377
+			require_once plugin_dir_path(dirname(__FILE__)).'admin/class-wordlift-admin-post-edit-page.php';
1378
+			new Wordlift_Admin_Post_Edit_Page($this);
1379 1379
 		}
1380 1380
 		new Wordlift_Entity_Type_Admin_Service();
1381 1381
 
@@ -1389,23 +1389,23 @@  discard block
 block discarded – undo
1389 1389
 		$this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1390 1390
 
1391 1391
 		/* WordPress Admin. */
1392
-		$this->download_your_data_page   = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1393
-		$this->status_page               = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1392
+		$this->download_your_data_page   = new Wordlift_Admin_Download_Your_Data_Page($this->configuration_service);
1393
+		$this->status_page               = new Wordlift_Admin_Status_Page($this->entity_service, $this->sparql_service);
1394 1394
 		$this->sync_mappings_mockup_page = new Wordlift_Admin_Mappings_Mockup_Page();
1395 1395
 		// Create an instance of the install wizard.
1396
-		$this->admin_setup = new Wordlift_Admin_Setup( $this->configuration_service, $this->key_validation_service, $this->entity_service, $this->language_select_element, $this->country_select_element );
1396
+		$this->admin_setup = new Wordlift_Admin_Setup($this->configuration_service, $this->key_validation_service, $this->entity_service, $this->language_select_element, $this->country_select_element);
1397 1397
 
1398
-		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1398
+		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service($this->entity_post_type_service);
1399 1399
 
1400 1400
 		// User Profile.
1401
-		new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1401
+		new Wordlift_Admin_User_Profile_Page($this->author_element, $this->user_service);
1402 1402
 
1403 1403
 		$this->entity_page_service = new Wordlift_Entity_Page_Service();
1404 1404
 
1405 1405
 		// Load the debug service if WP is in debug mode.
1406
-		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1407
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1408
-			new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1406
+		if (defined('WP_DEBUG') && WP_DEBUG) {
1407
+			require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-debug-service.php';
1408
+			new Wordlift_Debug_Service($this->entity_service, $uri_service);
1409 1409
 		}
1410 1410
 
1411 1411
 		// Remote Image Service.
@@ -1418,12 +1418,12 @@  discard block
 block discarded – undo
1418 1418
 		 *
1419 1419
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/852.
1420 1420
 		 */
1421
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-action.php';
1422
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-service.php';
1423
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1421
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/class-wordlift-batch-action.php';
1422
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/mapping/class-wordlift-mapping-service.php';
1423
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1424 1424
 
1425 1425
 		// Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1426
-		new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1426
+		new Wordlift_Mapping_Ajax_Adapter(new Wordlift_Mapping_Service(Wordlift_Entity_Type_Service::get_instance()));
1427 1427
 
1428 1428
 		/*
1429 1429
 		 * Batch Operations. They're similar to Batch Actions but do not require working on post types.
@@ -1432,8 +1432,8 @@  discard block
 block discarded – undo
1432 1432
 		 *
1433 1433
 		 * @since 3.20.0
1434 1434
 		 */
1435
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/intf-wordlift-batch-operation.php';
1436
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1435
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/batch/intf-wordlift-batch-operation.php';
1436
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1437 1437
 
1438 1438
 		/*
1439 1439
 		 * Add the Search Keywords taxonomy to manage the Search Keywords on WLS.
@@ -1442,15 +1442,15 @@  discard block
 block discarded – undo
1442 1442
 		 *
1443 1443
 		 * @since 3.20.0
1444 1444
 		 */
1445
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/search-keywords/class-wordlift-search-keyword-taxonomy.php';
1446
-		new Wordlift_Search_Keyword_Taxonomy( $api_service );
1445
+		require_once plugin_dir_path(dirname(__FILE__)).'includes/search-keywords/class-wordlift-search-keyword-taxonomy.php';
1446
+		new Wordlift_Search_Keyword_Taxonomy($api_service);
1447 1447
 
1448 1448
 		/*
1449 1449
 		 * Load dependencies for the front-end.
1450 1450
 		 *
1451 1451
 		 * @since 3.20.0
1452 1452
 		 */
1453
-		if ( ! is_admin() ) {
1453
+		if ( ! is_admin()) {
1454 1454
 			/*
1455 1455
 			 * Load the `Wordlift_Term_JsonLd_Adapter`.
1456 1456
 			 *
@@ -1458,8 +1458,8 @@  discard block
 block discarded – undo
1458 1458
 			 *
1459 1459
 			 * @since 3.20.0
1460 1460
 			 */
1461
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-term-jsonld-adapter.php';
1462
-			new Wordlift_Term_JsonLd_Adapter( $this->entity_uri_service, $this->jsonld_service );
1461
+			require_once plugin_dir_path(dirname(__FILE__)).'public/class-wordlift-term-jsonld-adapter.php';
1462
+			new Wordlift_Term_JsonLd_Adapter($this->entity_uri_service, $this->jsonld_service);
1463 1463
 		}
1464 1464
 
1465 1465
 		/*
@@ -1485,9 +1485,9 @@  discard block
 block discarded – undo
1485 1485
 	private function set_locale() {
1486 1486
 
1487 1487
 		$plugin_i18n = new Wordlift_i18n();
1488
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
1488
+		$plugin_i18n->set_domain($this->get_plugin_name());
1489 1489
 
1490
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1490
+		$this->loader->add_action('plugins_loaded', $plugin_i18n, 'load_plugin_textdomain');
1491 1491
 
1492 1492
 	}
1493 1493
 
@@ -1508,29 +1508,29 @@  discard block
 block discarded – undo
1508 1508
 			$this->user_service
1509 1509
 		);
1510 1510
 
1511
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1512
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1511
+		$this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
1512
+		$this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11);
1513 1513
 
1514 1514
 		// Hook the init action to taxonomy services.
1515
-		$this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1516
-		$this->loader->add_action( 'init', $this->entity_types_taxonomy_service, 'init', 0 );
1515
+		$this->loader->add_action('init', $this->topic_taxonomy_service, 'init', 0);
1516
+		$this->loader->add_action('init', $this->entity_types_taxonomy_service, 'init', 0);
1517 1517
 
1518 1518
 		// Hook the deleted_post_meta action to the Thumbnail service.
1519
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1519
+		$this->loader->add_action('deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4);
1520 1520
 
1521 1521
 		// Hook the added_post_meta action to the Thumbnail service.
1522
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1522
+		$this->loader->add_action('added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4);
1523 1523
 
1524 1524
 		// Hook the updated_post_meta action to the Thumbnail service.
1525
-		$this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1525
+		$this->loader->add_action('updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4);
1526 1526
 
1527 1527
 		// Hook the AJAX wl_timeline action to the Timeline service.
1528
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1528
+		$this->loader->add_action('wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline');
1529 1529
 
1530 1530
 		// Register custom allowed redirect hosts.
1531
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1531
+		$this->loader->add_filter('allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts');
1532 1532
 		// Hook the AJAX wordlift_redirect action to the Redirect service.
1533
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1533
+		$this->loader->add_action('wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect');
1534 1534
 
1535 1535
 		/*
1536 1536
 		 * The old dashboard is replaced with dashboard v2.
@@ -1548,81 +1548,81 @@  discard block
 block discarded – undo
1548 1548
 
1549 1549
 		// Hook save_post to the entity service to update custom fields (such as alternate labels).
1550 1550
 		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
1551
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1552
-		$this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1551
+		$this->loader->add_action('save_post', $this->entity_service, 'save_post', 9, 3);
1552
+		$this->loader->add_action('save_post', $this->rating_service, 'set_rating_for', 20, 1);
1553 1553
 
1554
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1555
-		$this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1554
+		$this->loader->add_action('edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1);
1555
+		$this->loader->add_action('in_admin_header', $this->rating_service, 'in_admin_header');
1556 1556
 
1557 1557
 		// Entity listing customization (wp-admin/edit.php)
1558 1558
 		// Add custom columns.
1559
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1559
+		$this->loader->add_filter('manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns');
1560 1560
 		// no explicit entity as it prevents handling of other post types.
1561
-		$this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1561
+		$this->loader->add_filter('manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2);
1562 1562
 		// Add 4W selection.
1563
-		$this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1564
-		$this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1565
-		$this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1566
-		$this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1563
+		$this->loader->add_action('restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope');
1564
+		$this->loader->add_filter('posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope');
1565
+		$this->loader->add_action('pre_get_posts', $this->entity_list_service, 'pre_get_posts');
1566
+		$this->loader->add_action('load-edit.php', $this->entity_list_service, 'load_edit');
1567 1567
 
1568 1568
 		/*
1569 1569
 		 * If `All Entity Types` is disable, use the radio button Walker.
1570 1570
 		 *
1571 1571
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1572 1572
 		 */
1573
-		if ( ! WL_ALL_ENTITY_TYPES ) {
1574
-			$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1573
+		if ( ! WL_ALL_ENTITY_TYPES) {
1574
+			$this->loader->add_filter('wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args');
1575 1575
 		}
1576 1576
 
1577 1577
 		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1578 1578
 		// entities.
1579
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1579
+		$this->loader->add_filter('prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2);
1580 1580
 
1581 1581
 		// Filter imported post meta.
1582
-		$this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1582
+		$this->loader->add_filter('wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3);
1583 1583
 
1584 1584
 		// Notify the import service when an import starts and ends.
1585
-		$this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1586
-		$this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1585
+		$this->loader->add_action('import_start', $this->import_service, 'import_start', 10, 0);
1586
+		$this->loader->add_action('import_end', $this->import_service, 'import_end', 10, 0);
1587 1587
 
1588 1588
 		// Hook the AJAX wl_rebuild action to the Rebuild Service.
1589
-		$this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1590
-		$this->loader->add_action( 'wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild' );
1589
+		$this->loader->add_action('wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild');
1590
+		$this->loader->add_action('wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild');
1591 1591
 
1592 1592
 		// Hook the menu to the Download Your Data page.
1593
-		$this->loader->add_action( 'admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0 );
1594
-		$this->loader->add_action( 'admin_menu', $this->status_page, 'admin_menu', 100, 0 );
1595
-		$this->loader->add_action( 'admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0 );
1596
-		$this->loader->add_action( 'admin_menu', $this->sync_mappings_mockup_page, 'admin_menu', 100, 0 );
1593
+		$this->loader->add_action('admin_menu', $this->download_your_data_page, 'admin_menu', 100, 0);
1594
+		$this->loader->add_action('admin_menu', $this->status_page, 'admin_menu', 100, 0);
1595
+		$this->loader->add_action('admin_menu', $this->entity_type_settings_admin_page, 'admin_menu', 100, 0);
1596
+		$this->loader->add_action('admin_menu', $this->sync_mappings_mockup_page, 'admin_menu', 100, 0);
1597 1597
 
1598 1598
 		// Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1599
-		$this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1599
+		$this->loader->add_action('wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10);
1600 1600
 
1601 1601
 		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1602
-		$this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1603
-		$this->loader->add_action( 'admin_post_wl_jsonld', $this->jsonld_service, 'get' );
1604
-		$this->loader->add_action( 'admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1602
+		$this->loader->add_action('wp_ajax_wl_jsonld', $this->jsonld_service, 'get');
1603
+		$this->loader->add_action('admin_post_wl_jsonld', $this->jsonld_service, 'get');
1604
+		$this->loader->add_action('admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get');
1605 1605
 
1606 1606
 		// Hook the AJAX wl_validate_key action to the Key Validation service.
1607
-		$this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1607
+		$this->loader->add_action('wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key');
1608 1608
 
1609 1609
 		// Hook the AJAX wl_update_country_options action to the countries.
1610
-		$this->loader->add_action( 'wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html' );
1610
+		$this->loader->add_action('wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html');
1611 1611
 
1612 1612
 		// Hook the `admin_init` function to the Admin Setup.
1613
-		$this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1613
+		$this->loader->add_action('admin_init', $this->admin_setup, 'admin_init');
1614 1614
 
1615 1615
 		// Hook the admin_init to the settings page.
1616
-		$this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1617
-		$this->loader->add_action( 'admin_init', $this->analytics_settings_page, 'admin_init' );
1616
+		$this->loader->add_action('admin_init', $this->settings_page, 'admin_init');
1617
+		$this->loader->add_action('admin_init', $this->analytics_settings_page, 'admin_init');
1618 1618
 
1619
-		$this->loader->add_filter( 'admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction' );
1619
+		$this->loader->add_filter('admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction');
1620 1620
 
1621 1621
 		// Hook the menu creation on the general wordlift menu creation.
1622
-		$this->loader->add_action( 'wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2 );
1623
-		if ( defined( 'WORDLIFT_BATCH' ) && WORDLIFT_BATCH ) {
1622
+		$this->loader->add_action('wl_admin_menu', $this->settings_page, 'admin_menu', 10, 2);
1623
+		if (defined('WORDLIFT_BATCH') && WORDLIFT_BATCH) {
1624 1624
 			// Add the functionality only if a flag is set in wp-config.php .
1625
-			$this->loader->add_action( 'wl_admin_menu', $this->batch_analysis_page, 'admin_menu', 10, 2 );
1625
+			$this->loader->add_action('wl_admin_menu', $this->batch_analysis_page, 'admin_menu', 10, 2);
1626 1626
 		}
1627 1627
 
1628 1628
 		/*
@@ -1632,17 +1632,17 @@  discard block
 block discarded – undo
1632 1632
 		 *
1633 1633
 		 * @since 3.20.0
1634 1634
 		 */
1635
-		if ( in_array( $this->configuration_service->get_package_type(), array( 'editorial', 'business' ) ) ) {
1635
+		if (in_array($this->configuration_service->get_package_type(), array('editorial', 'business'))) {
1636 1636
 			$admin_search_rankings_page = new Wordlift_Admin_Search_Rankings_Page();
1637
-			$this->loader->add_action( 'wl_admin_menu', $admin_search_rankings_page, 'admin_menu' );
1637
+			$this->loader->add_action('wl_admin_menu', $admin_search_rankings_page, 'admin_menu');
1638 1638
 		}
1639 1639
 
1640 1640
 		// Hook key update.
1641
-		$this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1642
-		$this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1641
+		$this->loader->add_action('pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2);
1642
+		$this->loader->add_action('update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2);
1643 1643
 
1644 1644
 		// Add additional action links to the WordLift plugin in the plugins page.
1645
-		$this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1645
+		$this->loader->add_filter('plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1);
1646 1646
 
1647 1647
 		/*
1648 1648
 		 * Remove the Analytics Settings link from the plugin page.
@@ -1653,72 +1653,72 @@  discard block
 block discarded – undo
1653 1653
 		// $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->analytics_settings_page_action_link, 'action_links', 10, 1 );
1654 1654
 
1655 1655
 		// Hook the AJAX `wl_publisher` action name.
1656
-		$this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1656
+		$this->loader->add_action('wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher');
1657 1657
 
1658 1658
 		// Hook row actions for the entity type list admin.
1659
-		$this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1659
+		$this->loader->add_filter('wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2);
1660 1660
 
1661 1661
 		/** Ajax actions. */
1662
-		$this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1662
+		$this->loader->add_action('wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export');
1663 1663
 
1664 1664
 		// Hook capabilities manipulation to allow access to entity type admin
1665 1665
 		// page  on WordPress versions before 4.7.
1666 1666
 		global $wp_version;
1667
-		if ( version_compare( $wp_version, '4.7', '<' ) ) {
1668
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1667
+		if (version_compare($wp_version, '4.7', '<')) {
1668
+			$this->loader->add_filter('map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4);
1669 1669
 		}
1670 1670
 
1671
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1671
+		$this->loader->add_action('wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1);
1672 1672
 
1673 1673
 		/** Adapters. */
1674
-		$this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1675
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit', $this->batch_analysis_adapter, 'submit' );
1676
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_submit_posts', $this->batch_analysis_adapter, 'submit_posts' );
1677
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_cancel', $this->batch_analysis_adapter, 'cancel' );
1678
-		$this->loader->add_action( 'wp_ajax_wl_batch_analysis_clear_warning', $this->batch_analysis_adapter, 'clear_warning' );
1679
-		$this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1674
+		$this->loader->add_filter('mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1);
1675
+		$this->loader->add_action('wp_ajax_wl_batch_analysis_submit', $this->batch_analysis_adapter, 'submit');
1676
+		$this->loader->add_action('wp_ajax_wl_batch_analysis_submit_posts', $this->batch_analysis_adapter, 'submit_posts');
1677
+		$this->loader->add_action('wp_ajax_wl_batch_analysis_cancel', $this->batch_analysis_adapter, 'cancel');
1678
+		$this->loader->add_action('wp_ajax_wl_batch_analysis_clear_warning', $this->batch_analysis_adapter, 'clear_warning');
1679
+		$this->loader->add_action('wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all');
1680 1680
 
1681
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1682
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1681
+		$this->loader->add_action('wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create');
1682
+		$this->loader->add_action('wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete');
1683 1683
 
1684 1684
 
1685
-		$this->loader->add_action( 'update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5 );
1686
-		$this->loader->add_action( 'delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5 );
1685
+		$this->loader->add_action('update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5);
1686
+		$this->loader->add_action('delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5);
1687 1687
 
1688 1688
 		// Handle the autocomplete request.
1689
-		add_action( 'wp_ajax_wl_autocomplete', array(
1689
+		add_action('wp_ajax_wl_autocomplete', array(
1690 1690
 			$this->autocomplete_adapter,
1691 1691
 			'wl_autocomplete',
1692
-		) );
1693
-		add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1692
+		));
1693
+		add_action('wp_ajax_nopriv_wl_autocomplete', array(
1694 1694
 			$this->autocomplete_adapter,
1695 1695
 			'wl_autocomplete',
1696
-		) );
1696
+		));
1697 1697
 
1698 1698
 		// Hooks to restrict multisite super admin from manipulating entity types.
1699
-		if ( is_multisite() ) {
1700
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1699
+		if (is_multisite()) {
1700
+			$this->loader->add_filter('map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4);
1701 1701
 		}
1702 1702
 
1703
-		$deactivator_feedback = new Wordlift_Deactivator_Feedback( $this->configuration_service );
1703
+		$deactivator_feedback = new Wordlift_Deactivator_Feedback($this->configuration_service);
1704 1704
 
1705
-		add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1706
-		add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1707
-		add_action( 'wp_ajax_wl_deactivation_feedback', array( $deactivator_feedback, 'wl_deactivation_feedback' ) );
1705
+		add_action('admin_footer', array($deactivator_feedback, 'render_feedback_popup'));
1706
+		add_action('admin_enqueue_scripts', array($deactivator_feedback, 'enqueue_popup_scripts'));
1707
+		add_action('wp_ajax_wl_deactivation_feedback', array($deactivator_feedback, 'wl_deactivation_feedback'));
1708 1708
 
1709 1709
 		/**
1710 1710
 		 * Always allow the `wordlift/classification` block.
1711 1711
 		 *
1712 1712
 		 * @since 3.23.0
1713 1713
 		 */
1714
-		add_filter( 'allowed_block_types', function ( $value ) {
1714
+		add_filter('allowed_block_types', function($value) {
1715 1715
 
1716
-			if ( true === $value ) {
1716
+			if (true === $value) {
1717 1717
 				return $value;
1718 1718
 			}
1719 1719
 
1720
-			return array_merge( (array) $value, array( 'wordlift/classification' ) );
1721
-		}, PHP_INT_MAX );
1720
+			return array_merge((array) $value, array('wordlift/classification'));
1721
+		}, PHP_INT_MAX);
1722 1722
 
1723 1723
 	}
1724 1724
 
@@ -1731,57 +1731,57 @@  discard block
 block discarded – undo
1731 1731
 	 */
1732 1732
 	private function define_public_hooks() {
1733 1733
 
1734
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1734
+		$plugin_public = new Wordlift_Public($this->get_plugin_name(), $this->get_version());
1735 1735
 
1736 1736
 		// Register the entity post type.
1737
-		$this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1738
-		$this->loader->add_action( 'init', $this->install_service, 'install' );
1737
+		$this->loader->add_action('init', $this->entity_post_type_service, 'register');
1738
+		$this->loader->add_action('init', $this->install_service, 'install');
1739 1739
 
1740 1740
 		// Bind the link generation and handling hooks to the entity link service.
1741
-		$this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1742
-		$this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1743
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3 );
1744
-		$this->loader->add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4 );
1741
+		$this->loader->add_filter('post_type_link', $this->entity_link_service, 'post_type_link', 10, 4);
1742
+		$this->loader->add_action('pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1);
1743
+		$this->loader->add_filter('wp_unique_post_slug_is_bad_flat_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_flat_slug', 10, 3);
1744
+		$this->loader->add_filter('wp_unique_post_slug_is_bad_hierarchical_slug', $this->entity_link_service, 'wp_unique_post_slug_is_bad_hierarchical_slug', 10, 4);
1745 1745
 
1746
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1747
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1748
-		$this->loader->add_action( 'wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts' );
1746
+		$this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_styles');
1747
+		$this->loader->add_action('wp_enqueue_scripts', $plugin_public, 'enqueue_scripts');
1748
+		$this->loader->add_action('wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts');
1749 1749
 
1750 1750
 		// Hook the content filter service to add entity links.
1751
-		if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1752
-			$this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1751
+		if ( ! defined('WL_DISABLE_CONTENT_FILTER') || ! WL_DISABLE_CONTENT_FILTER) {
1752
+			$this->loader->add_filter('the_content', $this->content_filter_service, 'the_content');
1753 1753
 		}
1754 1754
 
1755 1755
 		// Hook the AJAX wl_timeline action to the Timeline service.
1756
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1756
+		$this->loader->add_action('wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline');
1757 1757
 
1758 1758
 		// Hook the ShareThis service.
1759
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1760
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1759
+		$this->loader->add_filter('the_content', $this->sharethis_service, 'the_content', 99);
1760
+		$this->loader->add_filter('the_excerpt', $this->sharethis_service, 'the_excerpt', 99);
1761 1761
 
1762 1762
 		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1763
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1763
+		$this->loader->add_action('wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get');
1764 1764
 
1765 1765
 		// Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
1766 1766
 		// in order to tweak WP's `WP_Query` to include entities in queries related
1767 1767
 		// to categories.
1768
-		$this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
1768
+		$this->loader->add_action('pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1);
1769 1769
 
1770 1770
 		/*
1771 1771
 		 * Hook the `pre_get_posts` action to the `Wordlift_Entity_Page_Service`
1772 1772
 		 * in order to tweak WP's `WP_Query` to show event related entities in reverse
1773 1773
 		 * order of start time.
1774 1774
 		 */
1775
-		$this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
1775
+		$this->loader->add_action('pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1);
1776 1776
 
1777
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1777
+		$this->loader->add_action('wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1);
1778 1778
 
1779 1779
 		// This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
1780
-		$this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
1780
+		$this->loader->add_action('save_post', $this->entity_type_adapter, 'save_post', 9, 3);
1781 1781
 
1782 1782
 		// Analytics Script Frontend.
1783
-		if ( $this->configuration_service->is_analytics_enable() ) {
1784
-			$this->loader->add_action( 'wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10 );
1783
+		if ($this->configuration_service->is_analytics_enable()) {
1784
+			$this->loader->add_action('wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10);
1785 1785
 		}
1786 1786
 
1787 1787
 	}
@@ -1834,11 +1834,11 @@  discard block
 block discarded – undo
1834 1834
 	 */
1835 1835
 	private function load_cli_dependencies() {
1836 1836
 
1837
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cli/class-wordlift-push-reference-data-command.php';
1837
+		require_once plugin_dir_path(dirname(__FILE__)).'cli/class-wordlift-push-reference-data-command.php';
1838 1838
 
1839
-		$push_reference_data_command = new Wordlift_Push_Reference_Data_Command( $this->relation_service, $this->entity_service, $this->sparql_service, $this->configuration_service, $this->entity_type_service );
1839
+		$push_reference_data_command = new Wordlift_Push_Reference_Data_Command($this->relation_service, $this->entity_service, $this->sparql_service, $this->configuration_service, $this->entity_type_service);
1840 1840
 
1841
-		WP_CLI::add_command( 'wl references push', $push_reference_data_command );
1841
+		WP_CLI::add_command('wl references push', $push_reference_data_command);
1842 1842
 
1843 1843
 	}
1844 1844
 
Please login to merge, or discard this patch.