Completed
Pull Request — develop (#1498)
by
unknown
56s
created
src/includes/class-wordlift.php 1 patch
Indentation   +1940 added lines, -1940 removed lines patch added patch discarded remove patch
@@ -86,1664 +86,1664 @@  discard block
 block discarded – undo
86 86
  */
87 87
 class Wordlift {
88 88
 
89
-	//<editor-fold desc="## FIELDS">
90
-
91
-	/**
92
-	 * The loader that's responsible for maintaining and registering all hooks that power
93
-	 * the plugin.
94
-	 *
95
-	 * @since    1.0.0
96
-	 * @access   protected
97
-	 * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
98
-	 */
99
-	protected $loader;
100
-
101
-	/**
102
-	 * The unique identifier of this plugin.
103
-	 *
104
-	 * @since    1.0.0
105
-	 * @access   protected
106
-	 * @var      string $plugin_name The string used to uniquely identify this plugin.
107
-	 */
108
-	protected $plugin_name;
109
-
110
-	/**
111
-	 * The current version of the plugin.
112
-	 *
113
-	 * @since    1.0.0
114
-	 * @access   protected
115
-	 * @var      string $version The current version of the plugin.
116
-	 */
117
-	protected $version;
118
-
119
-	/**
120
-	 * The {@link Wordlift_Tinymce_Adapter} instance.
121
-	 *
122
-	 * @since  3.12.0
123
-	 * @access protected
124
-	 * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
125
-	 */
126
-	protected $tinymce_adapter;
127
-
128
-	/**
129
-	 * The {@link Faq_Tinymce_Adapter} instance
130
-	 * @since 3.26.0
131
-	 * @access protected
132
-	 * @var Faq_Tinymce_Adapter $faq_tinymce_adapter .
133
-	 */
134
-	//protected $faq_tinymce_adapter;
135
-
136
-	/**
137
-	 * The Thumbnail service.
138
-	 *
139
-	 * @since  3.1.5
140
-	 * @access private
141
-	 * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
142
-	 */
143
-	private $thumbnail_service;
144
-
145
-	/**
146
-	 * The UI service.
147
-	 *
148
-	 * @since  3.2.0
149
-	 * @access private
150
-	 * @var \Wordlift_UI_Service $ui_service The UI service.
151
-	 */
152
-	private $ui_service;
153
-
154
-	/**
155
-	 * The Schema service.
156
-	 *
157
-	 * @since  3.3.0
158
-	 * @access protected
159
-	 * @var \Wordlift_Schema_Service $schema_service The Schema service.
160
-	 */
161
-	protected $schema_service;
162
-
163
-	/**
164
-	 * The Entity service.
165
-	 *
166
-	 * @since  3.1.0
167
-	 * @access protected
168
-	 * @var \Wordlift_Entity_Service $entity_service The Entity service.
169
-	 */
170
-	protected $entity_service;
171
-
172
-	/**
173
-	 * The Topic Taxonomy service.
174
-	 *
175
-	 * @since  3.5.0
176
-	 * @access private
177
-	 * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
178
-	 */
179
-	private $topic_taxonomy_service;
180
-
181
-	/**
182
-	 * The Entity Types Taxonomy service.
183
-	 *
184
-	 * @since  3.18.0
185
-	 * @access private
186
-	 * @var \Wordlift_Entity_Type_Taxonomy_Service The Entity Types Taxonomy service.
187
-	 */
188
-	private $entity_types_taxonomy_service;
189
-
190
-	/**
191
-	 * The User service.
192
-	 *
193
-	 * @since  3.1.7
194
-	 * @access protected
195
-	 * @var \Wordlift_User_Service $user_service The User service.
196
-	 */
197
-	protected $user_service;
198
-
199
-	/**
200
-	 * The Timeline service.
201
-	 *
202
-	 * @since  3.1.0
203
-	 * @access private
204
-	 * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
205
-	 */
206
-	private $timeline_service;
207
-
208
-	/**
209
-	 * The Redirect service.
210
-	 *
211
-	 * @since  3.2.0
212
-	 * @access private
213
-	 * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
214
-	 */
215
-	private $redirect_service;
216
-
217
-	/**
218
-	 * The Notice service.
219
-	 *
220
-	 * @since  3.3.0
221
-	 * @access private
222
-	 * @var \Wordlift_Notice_Service $notice_service The Notice service.
223
-	 */
224
-	private $notice_service;
225
-
226
-	/**
227
-	 * The Entity list customization.
228
-	 *
229
-	 * @since  3.3.0
230
-	 * @access protected
231
-	 * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
232
-	 */
233
-	protected $entity_list_service;
234
-
235
-	/**
236
-	 * The Entity Types Taxonomy Walker.
237
-	 *
238
-	 * @since  3.1.0
239
-	 * @access private
240
-	 * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
241
-	 */
242
-	private $entity_types_taxonomy_walker;
243
-
244
-	/**
245
-	 * The ShareThis service.
246
-	 *
247
-	 * @since  3.2.0
248
-	 * @access private
249
-	 * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
250
-	 */
251
-	private $sharethis_service;
252
-
253
-	/**
254
-	 * The PrimaShop adapter.
255
-	 *
256
-	 * @since  3.2.3
257
-	 * @access private
258
-	 * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
259
-	 */
260
-	private $primashop_adapter;
261
-
262
-	/**
263
-	 * The WordLift Dashboard adapter.
264
-	 *
265
-	 * @since  3.4.0
266
-	 * @access private
267
-	 * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
268
-	 */
269
-	private $dashboard_service;
270
-
271
-	/**
272
-	 * The entity type service.
273
-	 *
274
-	 * @since  3.6.0
275
-	 * @access private
276
-	 * @var \Wordlift_Entity_Post_Type_Service
277
-	 */
278
-	private $entity_post_type_service;
279
-
280
-	/**
281
-	 * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
282
-	 *
283
-	 * @since  3.6.0
284
-	 * @access private
285
-	 * @var \Wordlift_Entity_Link_Service $entity_link_service The {@link Wordlift_Entity_Link_Service} instance.
286
-	 */
287
-	private $entity_link_service;
288
-
289
-	/**
290
-	 * A {@link Wordlift_Sparql_Service} instance.
291
-	 *
292
-	 * @since    3.6.0
293
-	 * @access   protected
294
-	 * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
295
-	 */
296
-	protected $sparql_service;
297
-
298
-	/**
299
-	 * A {@link Wordlift_Import_Service} instance.
300
-	 *
301
-	 * @since  3.6.0
302
-	 * @access private
303
-	 * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
304
-	 */
305
-	private $import_service;
306
-
307
-	/**
308
-	 * A {@link Wordlift_Rebuild_Service} instance.
309
-	 *
310
-	 * @since  3.6.0
311
-	 * @access private
312
-	 * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
313
-	 */
314
-	private $rebuild_service;
315
-
316
-	/**
317
-	 * A {@link Wordlift_Jsonld_Service} instance.
318
-	 *
319
-	 * @since  3.7.0
320
-	 * @access protected
321
-	 * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
322
-	 */
323
-	protected $jsonld_service;
324
-
325
-	/**
326
-	 * A {@link Wordlift_Website_Jsonld_Converter} instance.
327
-	 *
328
-	 * @since  3.14.0
329
-	 * @access protected
330
-	 * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
331
-	 */
332
-	protected $jsonld_website_converter;
333
-
334
-	/**
335
-	 * A {@link Wordlift_Property_Factory} instance.
336
-	 *
337
-	 * @since  3.7.0
338
-	 * @access private
339
-	 * @var \Wordlift_Property_Factory $property_factory
340
-	 */
341
-	private $property_factory;
342
-
343
-	/**
344
-	 * The 'Download Your Data' page.
345
-	 *
346
-	 * @since  3.6.0
347
-	 * @access private
348
-	 * @var \Wordlift_Admin_Download_Your_Data_Page $download_your_data_page The 'Download Your Data' page.
349
-	 */
350
-	private $download_your_data_page;
351
-
352
-	/**
353
-	 * The 'WordLift Settings' page.
354
-	 *
355
-	 * @since  3.11.0
356
-	 * @access protected
357
-	 * @var \Wordlift_Admin_Settings_Page $settings_page The 'WordLift Settings' page.
358
-	 */
359
-	protected $settings_page;
360
-
361
-	/**
362
-	 * The install wizard page.
363
-	 *
364
-	 * @since  3.9.0
365
-	 * @access private
366
-	 * @var \Wordlift_Admin_Setup $admin_setup The Install wizard.
367
-	 */
368
-	public $admin_setup;
369
-
370
-	/**
371
-	 * The Content Filter Service hooks up to the 'the_content' filter and provides
372
-	 * linking of entities to their pages.
373
-	 *
374
-	 * @since  3.8.0
375
-	 * @access private
376
-	 * @var \Wordlift_Content_Filter_Service $content_filter_service A {@link Wordlift_Content_Filter_Service} instance.
377
-	 */
378
-	private $content_filter_service;
379
-
380
-	/**
381
-	 * The Faq Content filter service
382
-	 * @since  3.26.0
383
-	 * @access private
384
-	 * @var Faq_Content_Filter $faq_content_filter_service A {@link Faq_Content_Filter} instance.
385
-	 */
386
-	private $faq_content_filter_service;
387
-
388
-	/**
389
-	 * A {@link Wordlift_Key_Validation_Service} instance.
390
-	 *
391
-	 * @since  3.9.0
392
-	 * @access private
393
-	 * @var Wordlift_Key_Validation_Service $key_validation_service A {@link Wordlift_Key_Validation_Service} instance.
394
-	 */
395
-	private $key_validation_service;
396
-
397
-	/**
398
-	 * A {@link Wordlift_Rating_Service} instance.
399
-	 *
400
-	 * @since  3.10.0
401
-	 * @access private
402
-	 * @var \Wordlift_Rating_Service $rating_service A {@link Wordlift_Rating_Service} instance.
403
-	 */
404
-	private $rating_service;
405
-
406
-	/**
407
-	 * A {@link Wordlift_Post_To_Jsonld_Converter} instance.
408
-	 *
409
-	 * @since  3.10.0
410
-	 * @access protected
411
-	 * @var \Wordlift_Post_To_Jsonld_Converter $post_to_jsonld_converter A {@link Wordlift_Post_To_Jsonld_Converter} instance.
412
-	 */
413
-	protected $post_to_jsonld_converter;
414
-
415
-	/**
416
-	 * A {@link Wordlift_Configuration_Service} instance.
417
-	 *
418
-	 * @since  3.10.0
419
-	 * @access protected
420
-	 * @var \Wordlift_Configuration_Service $configuration_service A {@link Wordlift_Configuration_Service} instance.
421
-	 */
422
-	protected $configuration_service;
423
-
424
-	/**
425
-	 * A {@link Wordlift_Install_Service} instance.
426
-	 *
427
-	 * @since  3.18.0
428
-	 * @access protected
429
-	 * @var \Wordlift_Install_Service $install_service A {@link Wordlift_Install_Service} instance.
430
-	 */
431
-	protected $install_service;
432
-
433
-	/**
434
-	 * A {@link Wordlift_Entity_Type_Service} instance.
435
-	 *
436
-	 * @since  3.10.0
437
-	 * @access protected
438
-	 * @var \Wordlift_Entity_Type_Service $entity_type_service A {@link Wordlift_Entity_Type_Service} instance.
439
-	 */
440
-	protected $entity_type_service;
441
-
442
-	/**
443
-	 * A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
444
-	 *
445
-	 * @since  3.10.0
446
-	 * @access protected
447
-	 * @var \Wordlift_Entity_Post_To_Jsonld_Converter $entity_post_to_jsonld_converter A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
448
-	 */
449
-	protected $entity_post_to_jsonld_converter;
450
-
451
-	/**
452
-	 * A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
453
-	 *
454
-	 * @since  3.10.0
455
-	 * @access protected
456
-	 * @var \Wordlift_Postid_To_Jsonld_Converter $postid_to_jsonld_converter A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
457
-	 */
458
-	protected $postid_to_jsonld_converter;
459
-
460
-	/**
461
-	 * The {@link Wordlift_Admin_Status_Page} class.
462
-	 *
463
-	 * @since  3.9.8
464
-	 * @access private
465
-	 * @var \Wordlift_Admin_Status_Page $status_page The {@link Wordlift_Admin_Status_Page} class.
466
-	 */
467
-	private $status_page;
468
-
469
-	/**
470
-	 * The {@link Wordlift_Category_Taxonomy_Service} instance.
471
-	 *
472
-	 * @since  3.11.0
473
-	 * @access protected
474
-	 * @var \Wordlift_Category_Taxonomy_Service $category_taxonomy_service The {@link Wordlift_Category_Taxonomy_Service} instance.
475
-	 */
476
-	protected $category_taxonomy_service;
477
-
478
-	/**
479
-	 * The {@link Wordlift_Entity_Page_Service} instance.
480
-	 *
481
-	 * @since  3.11.0
482
-	 * @access protected
483
-	 * @var \Wordlift_Entity_Page_Service $entity_page_service The {@link Wordlift_Entity_Page_Service} instance.
484
-	 */
485
-	protected $entity_page_service;
486
-
487
-	/**
488
-	 * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
489
-	 *
490
-	 * @since  3.11.0
491
-	 * @access protected
492
-	 * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
493
-	 */
494
-	protected $settings_page_action_link;
495
-
496
-	/**
497
-	 * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
498
-	 *
499
-	 * @since  3.11.0
500
-	 * @access protected
501
-	 * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
502
-	 */
503
-	protected $analytics_settings_page_action_link;
504
-
505
-	/**
506
-	 * The {@link Wordlift_Analytics_Connect} class.
507
-	 *
508
-	 * @since  3.11.0
509
-	 * @access protected
510
-	 * @var \Wordlift_Analytics_Connect $analytics_connect The {@link Wordlift_Analytics_Connect} class.
511
-	 */
512
-	protected $analytics_connect;
513
-
514
-	/**
515
-	 * The {@link Wordlift_Publisher_Ajax_Adapter} instance.
516
-	 *
517
-	 * @since  3.11.0
518
-	 * @access protected
519
-	 * @var \Wordlift_Publisher_Ajax_Adapter $publisher_ajax_adapter The {@link Wordlift_Publisher_Ajax_Adapter} instance.
520
-	 */
521
-	protected $publisher_ajax_adapter;
522
-
523
-	/**
524
-	 * The {@link Wordlift_Admin_Input_Element} element renderer.
525
-	 *
526
-	 * @since  3.11.0
527
-	 * @access protected
528
-	 * @var \Wordlift_Admin_Input_Element $input_element The {@link Wordlift_Admin_Input_Element} element renderer.
529
-	 */
530
-	protected $input_element;
531
-
532
-	/**
533
-	 * The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
534
-	 *
535
-	 * @since  3.13.0
536
-	 * @access protected
537
-	 * @var \Wordlift_Admin_Radio_Input_Element $radio_input_element The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
538
-	 */
539
-	protected $radio_input_element;
540
-
541
-	/**
542
-	 * The {@link Wordlift_Admin_Language_Select_Element} element renderer.
543
-	 *
544
-	 * @since  3.11.0
545
-	 * @access protected
546
-	 * @var \Wordlift_Admin_Language_Select_Element $language_select_element The {@link Wordlift_Admin_Language_Select_Element} element renderer.
547
-	 */
548
-	protected $language_select_element;
549
-
550
-	/**
551
-	 * The {@link Wordlift_Admin_Country_Select_Element} element renderer.
552
-	 *
553
-	 * @since  3.18.0
554
-	 * @access protected
555
-	 * @var \Wordlift_Admin_Country_Select_Element $country_select_element The {@link Wordlift_Admin_Country_Select_Element} element renderer.
556
-	 */
557
-	protected $country_select_element;
558
-
559
-	/**
560
-	 * The {@link Wordlift_Admin_Publisher_Element} element renderer.
561
-	 *
562
-	 * @since  3.11.0
563
-	 * @access protected
564
-	 * @var \Wordlift_Admin_Publisher_Element $publisher_element The {@link Wordlift_Admin_Publisher_Element} element renderer.
565
-	 */
566
-	protected $publisher_element;
567
-
568
-	/**
569
-	 * The {@link Wordlift_Admin_Select2_Element} element renderer.
570
-	 *
571
-	 * @since  3.11.0
572
-	 * @access protected
573
-	 * @var \Wordlift_Admin_Select2_Element $select2_element The {@link Wordlift_Admin_Select2_Element} element renderer.
574
-	 */
575
-	protected $select2_element;
576
-
577
-	/**
578
-	 * The controller for the entity type list admin page
579
-	 *
580
-	 * @since  3.11.0
581
-	 * @access private
582
-	 * @var \Wordlift_Admin_Entity_Taxonomy_List_Page $entity_type_admin_page The {@link Wordlift_Admin_Entity_Taxonomy_List_Page} class.
583
-	 */
584
-	private $entity_type_admin_page;
585
-
586
-	/**
587
-	 * The controller for the entity type settings admin page
588
-	 *
589
-	 * @since  3.11.0
590
-	 * @access private
591
-	 * @var \Wordlift_Admin_Entity_Type_Settings $entity_type_settings_admin_page The {@link Wordlift_Admin_Entity_Type_Settings} class.
592
-	 */
593
-	private $entity_type_settings_admin_page;
594
-
595
-	/**
596
-	 * The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
597
-	 *
598
-	 * @since  3.11.0
599
-	 * @access protected
600
-	 * @var \Wordlift_Related_Entities_Cloud_Widget $related_entities_cloud_widget The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
601
-	 */
602
-	protected $related_entities_cloud_widget;
603
-
604
-	/**
605
-	 * The {@link Wordlift_Admin_Author_Element} instance.
606
-	 *
607
-	 * @since  3.14.0
608
-	 * @access protected
609
-	 * @var \Wordlift_Admin_Author_Element $author_element The {@link Wordlift_Admin_Author_Element} instance.
610
-	 */
611
-	protected $author_element;
612
-
613
-	/**
614
-	 * The {@link Wordlift_Sample_Data_Service} instance.
615
-	 *
616
-	 * @since  3.12.0
617
-	 * @access protected
618
-	 * @var \Wordlift_Sample_Data_Service $sample_data_service The {@link Wordlift_Sample_Data_Service} instance.
619
-	 */
620
-	protected $sample_data_service;
621
-
622
-	/**
623
-	 * The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
624
-	 *
625
-	 * @since  3.12.0
626
-	 * @access protected
627
-	 * @var \Wordlift_Sample_Data_Ajax_Adapter $sample_data_ajax_adapter The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
628
-	 */
629
-	protected $sample_data_ajax_adapter;
630
-
631
-	/**
632
-	 * The {@link Wordlift_Relation_Rebuild_Service} instance.
633
-	 *
634
-	 * @since  3.14.3
635
-	 * @access private
636
-	 * @var \Wordlift_Relation_Rebuild_Service $relation_rebuild_service The {@link Wordlift_Relation_Rebuild_Service} instance.
637
-	 */
638
-	private $relation_rebuild_service;
639
-
640
-	/**
641
-	 * The {@link Wordlift_Relation_Rebuild_Adapter} instance.
642
-	 *
643
-	 * @since  3.14.3
644
-	 * @access private
645
-	 * @var \Wordlift_Relation_Rebuild_Adapter $relation_rebuild_adapter The {@link Wordlift_Relation_Rebuild_Adapter} instance.
646
-	 */
647
-	private $relation_rebuild_adapter;
648
-
649
-	/**
650
-	 * The {@link Wordlift_Reference_Rebuild_Service} instance.
651
-	 *
652
-	 * @since  3.18.0
653
-	 * @access private
654
-	 * @var \Wordlift_Reference_Rebuild_Service $reference_rebuild_service The {@link Wordlift_Reference_Rebuild_Service} instance.
655
-	 */
656
-	private $reference_rebuild_service;
657
-
658
-	/**
659
-	 * The {@link Wordlift_Google_Analytics_Export_Service} instance.
660
-	 *
661
-	 * @since  3.16.0
662
-	 * @access protected
663
-	 * @var \Wordlift_Google_Analytics_Export_Service $google_analytics_export_service The {@link Wordlift_Google_Analytics_Export_Service} instance.
664
-	 */
665
-	protected $google_analytics_export_service;
666
-
667
-	/**
668
-	 * {@link Wordlift}'s singleton instance.
669
-	 *
670
-	 * @since  3.15.0
671
-	 * @access protected
672
-	 * @var \Wordlift_Entity_Type_Adapter $entity_type_adapter The {@link Wordlift_Entity_Type_Adapter} instance.
673
-	 */
674
-	protected $entity_type_adapter;
675
-
676
-	/**
677
-	 * The {@link Wordlift_Storage_Factory} instance.
678
-	 *
679
-	 * @since  3.15.0
680
-	 * @access protected
681
-	 * @var \Wordlift_Storage_Factory $storage_factory The {@link Wordlift_Storage_Factory} instance.
682
-	 */
683
-	protected $storage_factory;
684
-
685
-	/**
686
-	 * The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
687
-	 *
688
-	 * @since  3.15.0
689
-	 * @access protected
690
-	 * @var \Wordlift_Sparql_Tuple_Rendition_Factory $rendition_factory The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
691
-	 */
692
-	protected $rendition_factory;
693
-
694
-	/**
695
-	 * The {@link Wordlift_Autocomplete_Adapter} instance.
696
-	 *
697
-	 * @since  3.15.0
698
-	 * @access private
699
-	 * @var \Wordlift_Autocomplete_Adapter $autocomplete_adapter The {@link Wordlift_Autocomplete_Adapter} instance.
700
-	 */
701
-	private $autocomplete_adapter;
702
-
703
-	/**
704
-	 * The {@link Wordlift_Relation_Service} instance.
705
-	 *
706
-	 * @since  3.15.0
707
-	 * @access protected
708
-	 * @var \Wordlift_Relation_Service $relation_service The {@link Wordlift_Relation_Service} instance.
709
-	 */
710
-	protected $relation_service;
711
-
712
-	/**
713
-	 * The {@link Wordlift_Cached_Post_Converter} instance.
714
-	 *
715
-	 * @since  3.16.0
716
-	 * @access protected
717
-	 * @var  \Wordlift_Cached_Post_Converter $cached_postid_to_jsonld_converter The {@link Wordlift_Cached_Post_Converter} instance.
718
-	 *
719
-	 */
720
-	protected $cached_postid_to_jsonld_converter;
721
-
722
-	/**
723
-	 * The {@link Wordlift_Entity_Uri_Service} instance.
724
-	 *
725
-	 * @since  3.16.3
726
-	 * @access protected
727
-	 * @var \Wordlift_Entity_Uri_Service $entity_uri_service The {@link Wordlift_Entity_Uri_Service} instance.
728
-	 */
729
-	protected $entity_uri_service;
730
-
731
-	/**
732
-	 * The {@link Wordlift_Publisher_Service} instance.
733
-	 *
734
-	 * @since  3.19.0
735
-	 * @access protected
736
-	 * @var \Wordlift_Publisher_Service $publisher_service The {@link Wordlift_Publisher_Service} instance.
737
-	 */
738
-	protected $publisher_service;
739
-
740
-	/**
741
-	 * The {@link Wordlift_Context_Cards_Service} instance.
742
-	 *
743
-	 * @var \Wordlift_Context_Cards_Service The {@link Wordlift_Context_Cards_Service} instance.
744
-	 */
745
-	protected $context_cards_service;
746
-
747
-	/**
748
-	 * {@link Wordlift}'s singleton instance.
749
-	 *
750
-	 * @since  3.11.2
751
-	 * @access private
752
-	 * @var Wordlift $instance {@link Wordlift}'s singleton instance.
753
-	 */
754
-	private static $instance;
755
-
756
-	/**
757
-	 * A singleton instance of features registry.
758
-	 * @since 3.30.0
759
-	 * @var Features_Registry
760
-	 */
761
-	private $features_registry;
762
-
763
-	//</editor-fold>
764
-
765
-	/**
766
-	 * Define the core functionality of the plugin.
767
-	 *
768
-	 * Set the plugin name and the plugin version that can be used throughout the plugin.
769
-	 * Load the dependencies, define the locale, and set the hooks for the admin area and
770
-	 * the public-facing side of the site.
771
-	 *
772
-	 * @since    1.0.0
773
-	 */
774
-	public function __construct() {
775
-
776
-		self::$instance = $this;
777
-
778
-		$this->plugin_name = 'wordlift';
779
-		$this->version     = '3.33.3';
780
-		$this->load_dependencies();
781
-		$this->set_locale();
782
-		$this->define_admin_hooks();
783
-		$this->define_public_hooks();
784
-
785
-		// If we're in `WP_CLI` load the related files.
786
-		if ( class_exists( 'WP_CLI' ) ) {
787
-			$this->load_cli_dependencies();
788
-		}
789
-
790
-	}
791
-
792
-	/**
793
-	 * Get the singleton instance.
794
-	 *
795
-	 * @return Wordlift The {@link Wordlift} singleton instance.
796
-	 * @since 3.11.2
797
-	 *
798
-	 */
799
-	public static function get_instance() {
800
-
801
-		return self::$instance;
802
-	}
803
-
804
-	/**
805
-	 * Load the required dependencies for this plugin.
806
-	 *
807
-	 * Include the following files that make up the plugin:
808
-	 *
809
-	 * - Wordlift_Loader. Orchestrates the hooks of the plugin.
810
-	 * - Wordlift_i18n. Defines internationalization functionality.
811
-	 * - Wordlift_Admin. Defines all hooks for the admin area.
812
-	 * - Wordlift_Public. Defines all hooks for the public side of the site.
813
-	 *
814
-	 * Create an instance of the loader which will be used to register the hooks
815
-	 * with WordPress.
816
-	 *
817
-	 * @throws Exception
818
-	 * @since    1.0.0
819
-	 * @access   private
820
-	 */
821
-	private function load_dependencies() {
822
-
823
-		/**
824
-		 * The class responsible for orchestrating the actions and filters of the
825
-		 * core plugin.
826
-		 */
827
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
828
-
829
-		// The class responsible for plugin uninstall.
830
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-deactivator-feedback.php';
831
-
832
-		/**
833
-		 * The class responsible for defining internationalization functionality
834
-		 * of the plugin.
835
-		 */
836
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
837
-
838
-		/**
839
-		 * WordLift's supported languages.
840
-		 */
841
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
842
-
843
-		/**
844
-		 * WordLift's supported countries.
845
-		 */
846
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-countries.php';
847
-
848
-		/**
849
-		 * Provide support functions to sanitize data.
850
-		 */
851
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
852
-
853
-		/** Services. */
854
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
855
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
856
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
857
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
858
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
859
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
860
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
861
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
862
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
863
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-image-service.php';
864
-
865
-		/**
866
-		 * The Query builder.
867
-		 */
868
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
869
-
870
-		/**
871
-		 * The Schema service.
872
-		 */
873
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
874
-
875
-		/**
876
-		 * The schema:url property service.
877
-		 */
878
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
879
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
880
-
881
-		/**
882
-		 * The UI service.
883
-		 */
884
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
885
-
886
-		/**
887
-		 * The Thumbnail service.
888
-		 */
889
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
890
-
891
-		/**
892
-		 * The Entity Types Taxonomy service.
893
-		 */
894
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
895
-
896
-		/**
897
-		 * The Entity service.
898
-		 */
899
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
900
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
901
-
902
-		// Add the entity rating service.
903
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
904
-
905
-		/**
906
-		 * The User service.
907
-		 */
908
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
909
-
910
-		/**
911
-		 * The Timeline service.
912
-		 */
913
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
914
-
915
-		/**
916
-		 * The Topic Taxonomy service.
917
-		 */
918
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
919
-
920
-		/**
921
-		 * The SPARQL service.
922
-		 */
923
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
924
-
925
-		/**
926
-		 * The WordLift import service.
927
-		 */
928
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
929
-
930
-		/**
931
-		 * The WordLift URI service.
932
-		 */
933
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
934
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
935
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
936
-
937
-		/**
938
-		 * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
939
-		 */
940
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-listable.php';
941
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-rebuild-service.php';
942
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-reference-rebuild-service.php';
943
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-service.php';
944
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
945
-
946
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
947
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
948
-
949
-		/**
950
-		 * Load the converters.
951
-		 */
952
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
953
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
954
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
955
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
956
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
957
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
958
-
959
-		/**
960
-		 * Load cache-related files.
961
-		 */
962
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
963
-
964
-		/**
965
-		 * Load the content filter.
966
-		 */
967
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
968
-
969
-		/*
89
+    //<editor-fold desc="## FIELDS">
90
+
91
+    /**
92
+     * The loader that's responsible for maintaining and registering all hooks that power
93
+     * the plugin.
94
+     *
95
+     * @since    1.0.0
96
+     * @access   protected
97
+     * @var      Wordlift_Loader $loader Maintains and registers all hooks for the plugin.
98
+     */
99
+    protected $loader;
100
+
101
+    /**
102
+     * The unique identifier of this plugin.
103
+     *
104
+     * @since    1.0.0
105
+     * @access   protected
106
+     * @var      string $plugin_name The string used to uniquely identify this plugin.
107
+     */
108
+    protected $plugin_name;
109
+
110
+    /**
111
+     * The current version of the plugin.
112
+     *
113
+     * @since    1.0.0
114
+     * @access   protected
115
+     * @var      string $version The current version of the plugin.
116
+     */
117
+    protected $version;
118
+
119
+    /**
120
+     * The {@link Wordlift_Tinymce_Adapter} instance.
121
+     *
122
+     * @since  3.12.0
123
+     * @access protected
124
+     * @var \Wordlift_Tinymce_Adapter $tinymce_adapter The {@link Wordlift_Tinymce_Adapter} instance.
125
+     */
126
+    protected $tinymce_adapter;
127
+
128
+    /**
129
+     * The {@link Faq_Tinymce_Adapter} instance
130
+     * @since 3.26.0
131
+     * @access protected
132
+     * @var Faq_Tinymce_Adapter $faq_tinymce_adapter .
133
+     */
134
+    //protected $faq_tinymce_adapter;
135
+
136
+    /**
137
+     * The Thumbnail service.
138
+     *
139
+     * @since  3.1.5
140
+     * @access private
141
+     * @var \Wordlift_Thumbnail_Service $thumbnail_service The Thumbnail service.
142
+     */
143
+    private $thumbnail_service;
144
+
145
+    /**
146
+     * The UI service.
147
+     *
148
+     * @since  3.2.0
149
+     * @access private
150
+     * @var \Wordlift_UI_Service $ui_service The UI service.
151
+     */
152
+    private $ui_service;
153
+
154
+    /**
155
+     * The Schema service.
156
+     *
157
+     * @since  3.3.0
158
+     * @access protected
159
+     * @var \Wordlift_Schema_Service $schema_service The Schema service.
160
+     */
161
+    protected $schema_service;
162
+
163
+    /**
164
+     * The Entity service.
165
+     *
166
+     * @since  3.1.0
167
+     * @access protected
168
+     * @var \Wordlift_Entity_Service $entity_service The Entity service.
169
+     */
170
+    protected $entity_service;
171
+
172
+    /**
173
+     * The Topic Taxonomy service.
174
+     *
175
+     * @since  3.5.0
176
+     * @access private
177
+     * @var \Wordlift_Topic_Taxonomy_Service The Topic Taxonomy service.
178
+     */
179
+    private $topic_taxonomy_service;
180
+
181
+    /**
182
+     * The Entity Types Taxonomy service.
183
+     *
184
+     * @since  3.18.0
185
+     * @access private
186
+     * @var \Wordlift_Entity_Type_Taxonomy_Service The Entity Types Taxonomy service.
187
+     */
188
+    private $entity_types_taxonomy_service;
189
+
190
+    /**
191
+     * The User service.
192
+     *
193
+     * @since  3.1.7
194
+     * @access protected
195
+     * @var \Wordlift_User_Service $user_service The User service.
196
+     */
197
+    protected $user_service;
198
+
199
+    /**
200
+     * The Timeline service.
201
+     *
202
+     * @since  3.1.0
203
+     * @access private
204
+     * @var \Wordlift_Timeline_Service $timeline_service The Timeline service.
205
+     */
206
+    private $timeline_service;
207
+
208
+    /**
209
+     * The Redirect service.
210
+     *
211
+     * @since  3.2.0
212
+     * @access private
213
+     * @var \Wordlift_Redirect_Service $redirect_service The Redirect service.
214
+     */
215
+    private $redirect_service;
216
+
217
+    /**
218
+     * The Notice service.
219
+     *
220
+     * @since  3.3.0
221
+     * @access private
222
+     * @var \Wordlift_Notice_Service $notice_service The Notice service.
223
+     */
224
+    private $notice_service;
225
+
226
+    /**
227
+     * The Entity list customization.
228
+     *
229
+     * @since  3.3.0
230
+     * @access protected
231
+     * @var \Wordlift_Entity_List_Service $entity_list_service The Entity list service.
232
+     */
233
+    protected $entity_list_service;
234
+
235
+    /**
236
+     * The Entity Types Taxonomy Walker.
237
+     *
238
+     * @since  3.1.0
239
+     * @access private
240
+     * @var \Wordlift_Entity_Types_Taxonomy_Walker $entity_types_taxonomy_walker The Entity Types Taxonomy Walker
241
+     */
242
+    private $entity_types_taxonomy_walker;
243
+
244
+    /**
245
+     * The ShareThis service.
246
+     *
247
+     * @since  3.2.0
248
+     * @access private
249
+     * @var \Wordlift_ShareThis_Service $sharethis_service The ShareThis service.
250
+     */
251
+    private $sharethis_service;
252
+
253
+    /**
254
+     * The PrimaShop adapter.
255
+     *
256
+     * @since  3.2.3
257
+     * @access private
258
+     * @var \Wordlift_PrimaShop_Adapter $primashop_adapter The PrimaShop adapter.
259
+     */
260
+    private $primashop_adapter;
261
+
262
+    /**
263
+     * The WordLift Dashboard adapter.
264
+     *
265
+     * @since  3.4.0
266
+     * @access private
267
+     * @var \Wordlift_Dashboard_Service $dashboard_service The WordLift Dashboard service;
268
+     */
269
+    private $dashboard_service;
270
+
271
+    /**
272
+     * The entity type service.
273
+     *
274
+     * @since  3.6.0
275
+     * @access private
276
+     * @var \Wordlift_Entity_Post_Type_Service
277
+     */
278
+    private $entity_post_type_service;
279
+
280
+    /**
281
+     * The entity link service used to mangle links to entities with a custom slug or even w/o a slug.
282
+     *
283
+     * @since  3.6.0
284
+     * @access private
285
+     * @var \Wordlift_Entity_Link_Service $entity_link_service The {@link Wordlift_Entity_Link_Service} instance.
286
+     */
287
+    private $entity_link_service;
288
+
289
+    /**
290
+     * A {@link Wordlift_Sparql_Service} instance.
291
+     *
292
+     * @since    3.6.0
293
+     * @access   protected
294
+     * @var \Wordlift_Sparql_Service $sparql_service A {@link Wordlift_Sparql_Service} instance.
295
+     */
296
+    protected $sparql_service;
297
+
298
+    /**
299
+     * A {@link Wordlift_Import_Service} instance.
300
+     *
301
+     * @since  3.6.0
302
+     * @access private
303
+     * @var \Wordlift_Import_Service $import_service A {@link Wordlift_Import_Service} instance.
304
+     */
305
+    private $import_service;
306
+
307
+    /**
308
+     * A {@link Wordlift_Rebuild_Service} instance.
309
+     *
310
+     * @since  3.6.0
311
+     * @access private
312
+     * @var \Wordlift_Rebuild_Service $rebuild_service A {@link Wordlift_Rebuild_Service} instance.
313
+     */
314
+    private $rebuild_service;
315
+
316
+    /**
317
+     * A {@link Wordlift_Jsonld_Service} instance.
318
+     *
319
+     * @since  3.7.0
320
+     * @access protected
321
+     * @var \Wordlift_Jsonld_Service $jsonld_service A {@link Wordlift_Jsonld_Service} instance.
322
+     */
323
+    protected $jsonld_service;
324
+
325
+    /**
326
+     * A {@link Wordlift_Website_Jsonld_Converter} instance.
327
+     *
328
+     * @since  3.14.0
329
+     * @access protected
330
+     * @var \Wordlift_Website_Jsonld_Converter $jsonld_website_converter A {@link Wordlift_Website_Jsonld_Converter} instance.
331
+     */
332
+    protected $jsonld_website_converter;
333
+
334
+    /**
335
+     * A {@link Wordlift_Property_Factory} instance.
336
+     *
337
+     * @since  3.7.0
338
+     * @access private
339
+     * @var \Wordlift_Property_Factory $property_factory
340
+     */
341
+    private $property_factory;
342
+
343
+    /**
344
+     * The 'Download Your Data' page.
345
+     *
346
+     * @since  3.6.0
347
+     * @access private
348
+     * @var \Wordlift_Admin_Download_Your_Data_Page $download_your_data_page The 'Download Your Data' page.
349
+     */
350
+    private $download_your_data_page;
351
+
352
+    /**
353
+     * The 'WordLift Settings' page.
354
+     *
355
+     * @since  3.11.0
356
+     * @access protected
357
+     * @var \Wordlift_Admin_Settings_Page $settings_page The 'WordLift Settings' page.
358
+     */
359
+    protected $settings_page;
360
+
361
+    /**
362
+     * The install wizard page.
363
+     *
364
+     * @since  3.9.0
365
+     * @access private
366
+     * @var \Wordlift_Admin_Setup $admin_setup The Install wizard.
367
+     */
368
+    public $admin_setup;
369
+
370
+    /**
371
+     * The Content Filter Service hooks up to the 'the_content' filter and provides
372
+     * linking of entities to their pages.
373
+     *
374
+     * @since  3.8.0
375
+     * @access private
376
+     * @var \Wordlift_Content_Filter_Service $content_filter_service A {@link Wordlift_Content_Filter_Service} instance.
377
+     */
378
+    private $content_filter_service;
379
+
380
+    /**
381
+     * The Faq Content filter service
382
+     * @since  3.26.0
383
+     * @access private
384
+     * @var Faq_Content_Filter $faq_content_filter_service A {@link Faq_Content_Filter} instance.
385
+     */
386
+    private $faq_content_filter_service;
387
+
388
+    /**
389
+     * A {@link Wordlift_Key_Validation_Service} instance.
390
+     *
391
+     * @since  3.9.0
392
+     * @access private
393
+     * @var Wordlift_Key_Validation_Service $key_validation_service A {@link Wordlift_Key_Validation_Service} instance.
394
+     */
395
+    private $key_validation_service;
396
+
397
+    /**
398
+     * A {@link Wordlift_Rating_Service} instance.
399
+     *
400
+     * @since  3.10.0
401
+     * @access private
402
+     * @var \Wordlift_Rating_Service $rating_service A {@link Wordlift_Rating_Service} instance.
403
+     */
404
+    private $rating_service;
405
+
406
+    /**
407
+     * A {@link Wordlift_Post_To_Jsonld_Converter} instance.
408
+     *
409
+     * @since  3.10.0
410
+     * @access protected
411
+     * @var \Wordlift_Post_To_Jsonld_Converter $post_to_jsonld_converter A {@link Wordlift_Post_To_Jsonld_Converter} instance.
412
+     */
413
+    protected $post_to_jsonld_converter;
414
+
415
+    /**
416
+     * A {@link Wordlift_Configuration_Service} instance.
417
+     *
418
+     * @since  3.10.0
419
+     * @access protected
420
+     * @var \Wordlift_Configuration_Service $configuration_service A {@link Wordlift_Configuration_Service} instance.
421
+     */
422
+    protected $configuration_service;
423
+
424
+    /**
425
+     * A {@link Wordlift_Install_Service} instance.
426
+     *
427
+     * @since  3.18.0
428
+     * @access protected
429
+     * @var \Wordlift_Install_Service $install_service A {@link Wordlift_Install_Service} instance.
430
+     */
431
+    protected $install_service;
432
+
433
+    /**
434
+     * A {@link Wordlift_Entity_Type_Service} instance.
435
+     *
436
+     * @since  3.10.0
437
+     * @access protected
438
+     * @var \Wordlift_Entity_Type_Service $entity_type_service A {@link Wordlift_Entity_Type_Service} instance.
439
+     */
440
+    protected $entity_type_service;
441
+
442
+    /**
443
+     * A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
444
+     *
445
+     * @since  3.10.0
446
+     * @access protected
447
+     * @var \Wordlift_Entity_Post_To_Jsonld_Converter $entity_post_to_jsonld_converter A {@link Wordlift_Entity_Post_To_Jsonld_Converter} instance.
448
+     */
449
+    protected $entity_post_to_jsonld_converter;
450
+
451
+    /**
452
+     * A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
453
+     *
454
+     * @since  3.10.0
455
+     * @access protected
456
+     * @var \Wordlift_Postid_To_Jsonld_Converter $postid_to_jsonld_converter A {@link Wordlift_Postid_To_Jsonld_Converter} instance.
457
+     */
458
+    protected $postid_to_jsonld_converter;
459
+
460
+    /**
461
+     * The {@link Wordlift_Admin_Status_Page} class.
462
+     *
463
+     * @since  3.9.8
464
+     * @access private
465
+     * @var \Wordlift_Admin_Status_Page $status_page The {@link Wordlift_Admin_Status_Page} class.
466
+     */
467
+    private $status_page;
468
+
469
+    /**
470
+     * The {@link Wordlift_Category_Taxonomy_Service} instance.
471
+     *
472
+     * @since  3.11.0
473
+     * @access protected
474
+     * @var \Wordlift_Category_Taxonomy_Service $category_taxonomy_service The {@link Wordlift_Category_Taxonomy_Service} instance.
475
+     */
476
+    protected $category_taxonomy_service;
477
+
478
+    /**
479
+     * The {@link Wordlift_Entity_Page_Service} instance.
480
+     *
481
+     * @since  3.11.0
482
+     * @access protected
483
+     * @var \Wordlift_Entity_Page_Service $entity_page_service The {@link Wordlift_Entity_Page_Service} instance.
484
+     */
485
+    protected $entity_page_service;
486
+
487
+    /**
488
+     * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
489
+     *
490
+     * @since  3.11.0
491
+     * @access protected
492
+     * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
493
+     */
494
+    protected $settings_page_action_link;
495
+
496
+    /**
497
+     * The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
498
+     *
499
+     * @since  3.11.0
500
+     * @access protected
501
+     * @var \Wordlift_Admin_Settings_Page_Action_Link $settings_page_action_link The {@link Wordlift_Admin_Settings_Page_Action_Link} class.
502
+     */
503
+    protected $analytics_settings_page_action_link;
504
+
505
+    /**
506
+     * The {@link Wordlift_Analytics_Connect} class.
507
+     *
508
+     * @since  3.11.0
509
+     * @access protected
510
+     * @var \Wordlift_Analytics_Connect $analytics_connect The {@link Wordlift_Analytics_Connect} class.
511
+     */
512
+    protected $analytics_connect;
513
+
514
+    /**
515
+     * The {@link Wordlift_Publisher_Ajax_Adapter} instance.
516
+     *
517
+     * @since  3.11.0
518
+     * @access protected
519
+     * @var \Wordlift_Publisher_Ajax_Adapter $publisher_ajax_adapter The {@link Wordlift_Publisher_Ajax_Adapter} instance.
520
+     */
521
+    protected $publisher_ajax_adapter;
522
+
523
+    /**
524
+     * The {@link Wordlift_Admin_Input_Element} element renderer.
525
+     *
526
+     * @since  3.11.0
527
+     * @access protected
528
+     * @var \Wordlift_Admin_Input_Element $input_element The {@link Wordlift_Admin_Input_Element} element renderer.
529
+     */
530
+    protected $input_element;
531
+
532
+    /**
533
+     * The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
534
+     *
535
+     * @since  3.13.0
536
+     * @access protected
537
+     * @var \Wordlift_Admin_Radio_Input_Element $radio_input_element The {@link Wordlift_Admin_Radio_Input_Element} element renderer.
538
+     */
539
+    protected $radio_input_element;
540
+
541
+    /**
542
+     * The {@link Wordlift_Admin_Language_Select_Element} element renderer.
543
+     *
544
+     * @since  3.11.0
545
+     * @access protected
546
+     * @var \Wordlift_Admin_Language_Select_Element $language_select_element The {@link Wordlift_Admin_Language_Select_Element} element renderer.
547
+     */
548
+    protected $language_select_element;
549
+
550
+    /**
551
+     * The {@link Wordlift_Admin_Country_Select_Element} element renderer.
552
+     *
553
+     * @since  3.18.0
554
+     * @access protected
555
+     * @var \Wordlift_Admin_Country_Select_Element $country_select_element The {@link Wordlift_Admin_Country_Select_Element} element renderer.
556
+     */
557
+    protected $country_select_element;
558
+
559
+    /**
560
+     * The {@link Wordlift_Admin_Publisher_Element} element renderer.
561
+     *
562
+     * @since  3.11.0
563
+     * @access protected
564
+     * @var \Wordlift_Admin_Publisher_Element $publisher_element The {@link Wordlift_Admin_Publisher_Element} element renderer.
565
+     */
566
+    protected $publisher_element;
567
+
568
+    /**
569
+     * The {@link Wordlift_Admin_Select2_Element} element renderer.
570
+     *
571
+     * @since  3.11.0
572
+     * @access protected
573
+     * @var \Wordlift_Admin_Select2_Element $select2_element The {@link Wordlift_Admin_Select2_Element} element renderer.
574
+     */
575
+    protected $select2_element;
576
+
577
+    /**
578
+     * The controller for the entity type list admin page
579
+     *
580
+     * @since  3.11.0
581
+     * @access private
582
+     * @var \Wordlift_Admin_Entity_Taxonomy_List_Page $entity_type_admin_page The {@link Wordlift_Admin_Entity_Taxonomy_List_Page} class.
583
+     */
584
+    private $entity_type_admin_page;
585
+
586
+    /**
587
+     * The controller for the entity type settings admin page
588
+     *
589
+     * @since  3.11.0
590
+     * @access private
591
+     * @var \Wordlift_Admin_Entity_Type_Settings $entity_type_settings_admin_page The {@link Wordlift_Admin_Entity_Type_Settings} class.
592
+     */
593
+    private $entity_type_settings_admin_page;
594
+
595
+    /**
596
+     * The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
597
+     *
598
+     * @since  3.11.0
599
+     * @access protected
600
+     * @var \Wordlift_Related_Entities_Cloud_Widget $related_entities_cloud_widget The {@link Wordlift_Related_Entities_Cloud_Widget} instance.
601
+     */
602
+    protected $related_entities_cloud_widget;
603
+
604
+    /**
605
+     * The {@link Wordlift_Admin_Author_Element} instance.
606
+     *
607
+     * @since  3.14.0
608
+     * @access protected
609
+     * @var \Wordlift_Admin_Author_Element $author_element The {@link Wordlift_Admin_Author_Element} instance.
610
+     */
611
+    protected $author_element;
612
+
613
+    /**
614
+     * The {@link Wordlift_Sample_Data_Service} instance.
615
+     *
616
+     * @since  3.12.0
617
+     * @access protected
618
+     * @var \Wordlift_Sample_Data_Service $sample_data_service The {@link Wordlift_Sample_Data_Service} instance.
619
+     */
620
+    protected $sample_data_service;
621
+
622
+    /**
623
+     * The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
624
+     *
625
+     * @since  3.12.0
626
+     * @access protected
627
+     * @var \Wordlift_Sample_Data_Ajax_Adapter $sample_data_ajax_adapter The {@link Wordlift_Sample_Data_Ajax_Adapter} instance.
628
+     */
629
+    protected $sample_data_ajax_adapter;
630
+
631
+    /**
632
+     * The {@link Wordlift_Relation_Rebuild_Service} instance.
633
+     *
634
+     * @since  3.14.3
635
+     * @access private
636
+     * @var \Wordlift_Relation_Rebuild_Service $relation_rebuild_service The {@link Wordlift_Relation_Rebuild_Service} instance.
637
+     */
638
+    private $relation_rebuild_service;
639
+
640
+    /**
641
+     * The {@link Wordlift_Relation_Rebuild_Adapter} instance.
642
+     *
643
+     * @since  3.14.3
644
+     * @access private
645
+     * @var \Wordlift_Relation_Rebuild_Adapter $relation_rebuild_adapter The {@link Wordlift_Relation_Rebuild_Adapter} instance.
646
+     */
647
+    private $relation_rebuild_adapter;
648
+
649
+    /**
650
+     * The {@link Wordlift_Reference_Rebuild_Service} instance.
651
+     *
652
+     * @since  3.18.0
653
+     * @access private
654
+     * @var \Wordlift_Reference_Rebuild_Service $reference_rebuild_service The {@link Wordlift_Reference_Rebuild_Service} instance.
655
+     */
656
+    private $reference_rebuild_service;
657
+
658
+    /**
659
+     * The {@link Wordlift_Google_Analytics_Export_Service} instance.
660
+     *
661
+     * @since  3.16.0
662
+     * @access protected
663
+     * @var \Wordlift_Google_Analytics_Export_Service $google_analytics_export_service The {@link Wordlift_Google_Analytics_Export_Service} instance.
664
+     */
665
+    protected $google_analytics_export_service;
666
+
667
+    /**
668
+     * {@link Wordlift}'s singleton instance.
669
+     *
670
+     * @since  3.15.0
671
+     * @access protected
672
+     * @var \Wordlift_Entity_Type_Adapter $entity_type_adapter The {@link Wordlift_Entity_Type_Adapter} instance.
673
+     */
674
+    protected $entity_type_adapter;
675
+
676
+    /**
677
+     * The {@link Wordlift_Storage_Factory} instance.
678
+     *
679
+     * @since  3.15.0
680
+     * @access protected
681
+     * @var \Wordlift_Storage_Factory $storage_factory The {@link Wordlift_Storage_Factory} instance.
682
+     */
683
+    protected $storage_factory;
684
+
685
+    /**
686
+     * The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
687
+     *
688
+     * @since  3.15.0
689
+     * @access protected
690
+     * @var \Wordlift_Sparql_Tuple_Rendition_Factory $rendition_factory The {@link Wordlift_Sparql_Tuple_Rendition_Factory} instance.
691
+     */
692
+    protected $rendition_factory;
693
+
694
+    /**
695
+     * The {@link Wordlift_Autocomplete_Adapter} instance.
696
+     *
697
+     * @since  3.15.0
698
+     * @access private
699
+     * @var \Wordlift_Autocomplete_Adapter $autocomplete_adapter The {@link Wordlift_Autocomplete_Adapter} instance.
700
+     */
701
+    private $autocomplete_adapter;
702
+
703
+    /**
704
+     * The {@link Wordlift_Relation_Service} instance.
705
+     *
706
+     * @since  3.15.0
707
+     * @access protected
708
+     * @var \Wordlift_Relation_Service $relation_service The {@link Wordlift_Relation_Service} instance.
709
+     */
710
+    protected $relation_service;
711
+
712
+    /**
713
+     * The {@link Wordlift_Cached_Post_Converter} instance.
714
+     *
715
+     * @since  3.16.0
716
+     * @access protected
717
+     * @var  \Wordlift_Cached_Post_Converter $cached_postid_to_jsonld_converter The {@link Wordlift_Cached_Post_Converter} instance.
718
+     *
719
+     */
720
+    protected $cached_postid_to_jsonld_converter;
721
+
722
+    /**
723
+     * The {@link Wordlift_Entity_Uri_Service} instance.
724
+     *
725
+     * @since  3.16.3
726
+     * @access protected
727
+     * @var \Wordlift_Entity_Uri_Service $entity_uri_service The {@link Wordlift_Entity_Uri_Service} instance.
728
+     */
729
+    protected $entity_uri_service;
730
+
731
+    /**
732
+     * The {@link Wordlift_Publisher_Service} instance.
733
+     *
734
+     * @since  3.19.0
735
+     * @access protected
736
+     * @var \Wordlift_Publisher_Service $publisher_service The {@link Wordlift_Publisher_Service} instance.
737
+     */
738
+    protected $publisher_service;
739
+
740
+    /**
741
+     * The {@link Wordlift_Context_Cards_Service} instance.
742
+     *
743
+     * @var \Wordlift_Context_Cards_Service The {@link Wordlift_Context_Cards_Service} instance.
744
+     */
745
+    protected $context_cards_service;
746
+
747
+    /**
748
+     * {@link Wordlift}'s singleton instance.
749
+     *
750
+     * @since  3.11.2
751
+     * @access private
752
+     * @var Wordlift $instance {@link Wordlift}'s singleton instance.
753
+     */
754
+    private static $instance;
755
+
756
+    /**
757
+     * A singleton instance of features registry.
758
+     * @since 3.30.0
759
+     * @var Features_Registry
760
+     */
761
+    private $features_registry;
762
+
763
+    //</editor-fold>
764
+
765
+    /**
766
+     * Define the core functionality of the plugin.
767
+     *
768
+     * Set the plugin name and the plugin version that can be used throughout the plugin.
769
+     * Load the dependencies, define the locale, and set the hooks for the admin area and
770
+     * the public-facing side of the site.
771
+     *
772
+     * @since    1.0.0
773
+     */
774
+    public function __construct() {
775
+
776
+        self::$instance = $this;
777
+
778
+        $this->plugin_name = 'wordlift';
779
+        $this->version     = '3.33.3';
780
+        $this->load_dependencies();
781
+        $this->set_locale();
782
+        $this->define_admin_hooks();
783
+        $this->define_public_hooks();
784
+
785
+        // If we're in `WP_CLI` load the related files.
786
+        if ( class_exists( 'WP_CLI' ) ) {
787
+            $this->load_cli_dependencies();
788
+        }
789
+
790
+    }
791
+
792
+    /**
793
+     * Get the singleton instance.
794
+     *
795
+     * @return Wordlift The {@link Wordlift} singleton instance.
796
+     * @since 3.11.2
797
+     *
798
+     */
799
+    public static function get_instance() {
800
+
801
+        return self::$instance;
802
+    }
803
+
804
+    /**
805
+     * Load the required dependencies for this plugin.
806
+     *
807
+     * Include the following files that make up the plugin:
808
+     *
809
+     * - Wordlift_Loader. Orchestrates the hooks of the plugin.
810
+     * - Wordlift_i18n. Defines internationalization functionality.
811
+     * - Wordlift_Admin. Defines all hooks for the admin area.
812
+     * - Wordlift_Public. Defines all hooks for the public side of the site.
813
+     *
814
+     * Create an instance of the loader which will be used to register the hooks
815
+     * with WordPress.
816
+     *
817
+     * @throws Exception
818
+     * @since    1.0.0
819
+     * @access   private
820
+     */
821
+    private function load_dependencies() {
822
+
823
+        /**
824
+         * The class responsible for orchestrating the actions and filters of the
825
+         * core plugin.
826
+         */
827
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-loader.php';
828
+
829
+        // The class responsible for plugin uninstall.
830
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-deactivator-feedback.php';
831
+
832
+        /**
833
+         * The class responsible for defining internationalization functionality
834
+         * of the plugin.
835
+         */
836
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-i18n.php';
837
+
838
+        /**
839
+         * WordLift's supported languages.
840
+         */
841
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-languages.php';
842
+
843
+        /**
844
+         * WordLift's supported countries.
845
+         */
846
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-countries.php';
847
+
848
+        /**
849
+         * Provide support functions to sanitize data.
850
+         */
851
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sanitizer.php';
852
+
853
+        /** Services. */
854
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-log-service.php';
855
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-http-api.php';
856
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-redirect-service.php';
857
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-configuration-service.php';
858
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-type-service.php';
859
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-service.php';
860
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-link-service.php';
861
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-linked-data-service.php';
862
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-relation-service.php';
863
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-image-service.php';
864
+
865
+        /**
866
+         * The Query builder.
867
+         */
868
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-query-builder.php';
869
+
870
+        /**
871
+         * The Schema service.
872
+         */
873
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-service.php';
874
+
875
+        /**
876
+         * The schema:url property service.
877
+         */
878
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-service.php';
879
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-schema-url-property-service.php';
880
+
881
+        /**
882
+         * The UI service.
883
+         */
884
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-ui-service.php';
885
+
886
+        /**
887
+         * The Thumbnail service.
888
+         */
889
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-thumbnail-service.php';
890
+
891
+        /**
892
+         * The Entity Types Taxonomy service.
893
+         */
894
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-taxonomy-service.php';
895
+
896
+        /**
897
+         * The Entity service.
898
+         */
899
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-uri-service.php';
900
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-service.php';
901
+
902
+        // Add the entity rating service.
903
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-rating-service.php';
904
+
905
+        /**
906
+         * The User service.
907
+         */
908
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-user-service.php';
909
+
910
+        /**
911
+         * The Timeline service.
912
+         */
913
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-timeline-service.php';
914
+
915
+        /**
916
+         * The Topic Taxonomy service.
917
+         */
918
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-topic-taxonomy-service.php';
919
+
920
+        /**
921
+         * The SPARQL service.
922
+         */
923
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sparql-service.php';
924
+
925
+        /**
926
+         * The WordLift import service.
927
+         */
928
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-import-service.php';
929
+
930
+        /**
931
+         * The WordLift URI service.
932
+         */
933
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-uri-service.php';
934
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-property-factory.php';
935
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-service.php';
936
+
937
+        /**
938
+         * The WordLift rebuild service, used to rebuild the remote dataset using the local data.
939
+         */
940
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-listable.php';
941
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-rebuild-service.php';
942
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-reference-rebuild-service.php';
943
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-service.php';
944
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/rebuild/class-wordlift-relation-rebuild-adapter.php';
945
+
946
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/properties/class-wordlift-property-getter-factory.php';
947
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-attachment-service.php';
948
+
949
+        /**
950
+         * Load the converters.
951
+         */
952
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/intf-wordlift-post-converter.php';
953
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-abstract-post-to-jsonld-converter.php';
954
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-postid-to-jsonld-converter.php';
955
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-post-to-jsonld-converter.php';
956
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-to-jsonld-converter.php';
957
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-website-converter.php';
958
+
959
+        /**
960
+         * Load cache-related files.
961
+         */
962
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cache/require.php';
963
+
964
+        /**
965
+         * Load the content filter.
966
+         */
967
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-content-filter-service.php';
968
+
969
+        /*
970 970
 		 * Load the excerpt helper.
971 971
 		 */
972
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
973
-
974
-		/**
975
-		 * Load the JSON-LD service to publish entities using JSON-LD.s
976
-		 *
977
-		 * @since 3.8.0
978
-		 */
979
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
980
-
981
-		// The Publisher Service and the AJAX adapter.
982
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
983
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
984
-
985
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
986
-
987
-		/**
988
-		 * Load the WordLift key validation service.
989
-		 */
990
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
991
-
992
-		// Load the `Wordlift_Category_Taxonomy_Service` class definition.
993
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
994
-
995
-		// Load the `Wordlift_Entity_Page_Service` class definition.
996
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
997
-
998
-		/** Linked Data. */
999
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
1000
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
1001
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
1002
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
1003
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
1004
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
1005
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
1006
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
1007
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
1008
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
1009
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
1010
-
1011
-		/** Linked Data Rendition. */
1012
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
1013
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
1014
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
1015
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
1016
-
1017
-		/** Services. */
1018
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
1019
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-api-service.php';
1020
-
1021
-		/** Adapters. */
1022
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
1023
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
1024
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
1025
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
1026
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-wprocket-adapter.php';
1027
-
1028
-		/** Async Tasks. */
1029
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
1030
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1031
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1032
-
1033
-		/** Autocomplete. */
1034
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
1035
-
1036
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-remote-image-service.php';
1037
-
1038
-		/** Analytics */
1039
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/analytics/class-wordlift-analytics-connect.php';
1040
-
1041
-		/**
1042
-		 * The class responsible for defining all actions that occur in the admin area.
1043
-		 */
1044
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
1045
-
1046
-		/**
1047
-		 * The class to customize the entity list admin page.
1048
-		 */
1049
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
1050
-
1051
-		/**
1052
-		 * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
1053
-		 */
1054
-		global $wp_version;
1055
-		if ( version_compare( $wp_version, '5.3', '<' ) ) {
1056
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
1057
-		} else {
1058
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1059
-		}
1060
-
1061
-		/**
1062
-		 * The Notice service.
1063
-		 */
1064
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
1065
-
1066
-		/**
1067
-		 * The PrimaShop adapter.
1068
-		 */
1069
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
1070
-
1071
-		/**
1072
-		 * The WordLift Dashboard service.
1073
-		 */
1074
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
1075
-
1076
-		/**
1077
-		 * The admin 'Install wizard' page.
1078
-		 */
1079
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
1080
-
1081
-		/**
1082
-		 * The WordLift entity type list admin page controller.
1083
-		 */
1084
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1085
-
1086
-		/**
1087
-		 * The WordLift entity type settings admin page controller.
1088
-		 */
1089
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
1090
-
1091
-		/**
1092
-		 * The admin 'Download Your Data' page.
1093
-		 */
1094
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
1095
-
1096
-		/**
1097
-		 * The admin 'WordLift Settings' page.
1098
-		 */
1099
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/intf-wordlift-admin-element.php';
1100
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-element.php';
1101
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-radio-element.php';
1102
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select-element.php';
1103
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select2-element.php';
1104
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
1105
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
1106
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
1107
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-author-element.php';
1108
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
1109
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
1110
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
1111
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
1112
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
1113
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1114
-
1115
-		/** Admin Pages */
1116
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
1117
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
1118
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
1119
-
1120
-		/**
1121
-		 * The class responsible for defining all actions that occur in the public-facing
1122
-		 * side of the site.
1123
-		 */
1124
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
1125
-
1126
-		/**
1127
-		 * The shortcode abstract class.
1128
-		 */
1129
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1130
-
1131
-		/**
1132
-		 * The Timeline shortcode.
1133
-		 */
1134
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1135
-
1136
-		/**
1137
-		 * The Navigator shortcode.
1138
-		 */
1139
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1140
-
1141
-		/**
1142
-		 * The Products Navigator shortcode.
1143
-		 */
1144
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-products-navigator-shortcode.php';
1145
-
1146
-		/**
1147
-		 * The chord shortcode.
1148
-		 */
1149
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1150
-
1151
-		/**
1152
-		 * The geomap shortcode.
1153
-		 */
1154
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1155
-
1156
-		/**
1157
-		 * The entity cloud shortcode.
1158
-		 */
1159
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1160
-
1161
-		/**
1162
-		 * The entity glossary shortcode.
1163
-		 */
1164
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1165
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1166
-
1167
-		/**
1168
-		 * Faceted Search shortcode.
1169
-		 */
1170
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-faceted-search-shortcode.php';
1171
-
1172
-		/**
1173
-		 * The ShareThis service.
1174
-		 */
1175
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1176
-
1177
-		/**
1178
-		 * The SEO service.
1179
-		 */
1180
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1181
-
1182
-		/**
1183
-		 * The AMP service.
1184
-		 */
1185
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1186
-
1187
-		/** Widgets */
1188
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1189
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1190
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-context-cards.php';
1191
-
1192
-		/*
972
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-excerpt-helper.php';
973
+
974
+        /**
975
+         * Load the JSON-LD service to publish entities using JSON-LD.s
976
+         *
977
+         * @since 3.8.0
978
+         */
979
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-jsonld-service.php';
980
+
981
+        // The Publisher Service and the AJAX adapter.
982
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-service.php';
983
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-publisher-ajax-adapter.php';
984
+
985
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-post-adapter.php';
986
+
987
+        /**
988
+         * Load the WordLift key validation service.
989
+         */
990
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-key-validation-service.php';
991
+
992
+        // Load the `Wordlift_Category_Taxonomy_Service` class definition.
993
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-category-taxonomy-service.php';
994
+
995
+        // Load the `Wordlift_Entity_Page_Service` class definition.
996
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-page-service.php';
997
+
998
+        /** Linked Data. */
999
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage.php';
1000
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-storage.php';
1001
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-property-storage.php';
1002
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-taxonomy-storage.php';
1003
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-schema-class-storage.php';
1004
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-author-storage.php';
1005
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-meta-uri-storage.php';
1006
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-image-storage.php';
1007
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-post-related-storage.php';
1008
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-url-property-storage.php';
1009
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/storage/class-wordlift-storage-factory.php';
1010
+
1011
+        /** Linked Data Rendition. */
1012
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/intf-wordlift-sparql-tuple-rendition.php';
1013
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-default-sparql-tuple-rendition.php';
1014
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-address-sparql-tuple-rendition.php';
1015
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/linked-data/rendition/class-wordlift-sparql-tuple-rendition-factory.php';
1016
+
1017
+        /** Services. */
1018
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-google-analytics-export-service.php';
1019
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-api-service.php';
1020
+
1021
+        /** Adapters. */
1022
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-tinymce-adapter.php';
1023
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-newrelic-adapter.php';
1024
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-sample-data-ajax-adapter.php';
1025
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-entity-type-adapter.php';
1026
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-wprocket-adapter.php';
1027
+
1028
+        /** Async Tasks. */
1029
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-async-task.php';
1030
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-sparql-query-async-task.php';
1031
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/wp-async-task/class-wordlift-push-references-async-task.php';
1032
+
1033
+        /** Autocomplete. */
1034
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-autocomplete-adapter.php';
1035
+
1036
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-remote-image-service.php';
1037
+
1038
+        /** Analytics */
1039
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/analytics/class-wordlift-analytics-connect.php';
1040
+
1041
+        /**
1042
+         * The class responsible for defining all actions that occur in the admin area.
1043
+         */
1044
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin.php';
1045
+
1046
+        /**
1047
+         * The class to customize the entity list admin page.
1048
+         */
1049
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-list.php';
1050
+
1051
+        /**
1052
+         * The Entity Types Taxonomy Walker (transforms checkboxes into radios).
1053
+         */
1054
+        global $wp_version;
1055
+        if ( version_compare( $wp_version, '5.3', '<' ) ) {
1056
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker.php';
1057
+        } else {
1058
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-types-taxonomy-walker-5-3.php';
1059
+        }
1060
+
1061
+        /**
1062
+         * The Notice service.
1063
+         */
1064
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-notice-service.php';
1065
+
1066
+        /**
1067
+         * The PrimaShop adapter.
1068
+         */
1069
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-primashop-adapter.php';
1070
+
1071
+        /**
1072
+         * The WordLift Dashboard service.
1073
+         */
1074
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-dashboard.php';
1075
+
1076
+        /**
1077
+         * The admin 'Install wizard' page.
1078
+         */
1079
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-setup.php';
1080
+
1081
+        /**
1082
+         * The WordLift entity type list admin page controller.
1083
+         */
1084
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-entity-taxonomy-list-page.php';
1085
+
1086
+        /**
1087
+         * The WordLift entity type settings admin page controller.
1088
+         */
1089
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-settings.php';
1090
+
1091
+        /**
1092
+         * The admin 'Download Your Data' page.
1093
+         */
1094
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-download-your-data-page.php';
1095
+
1096
+        /**
1097
+         * The admin 'WordLift Settings' page.
1098
+         */
1099
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/intf-wordlift-admin-element.php';
1100
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-element.php';
1101
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-input-radio-element.php';
1102
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select-element.php';
1103
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-select2-element.php';
1104
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-language-select-element.php';
1105
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-country-select-element.php';
1106
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-tabs-element.php';
1107
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-author-element.php';
1108
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/elements/class-wordlift-admin-publisher-element.php';
1109
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-page.php';
1110
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page.php';
1111
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page.php';
1112
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-page-action-link.php';
1113
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-settings-analytics-page-action-link.php';
1114
+
1115
+        /** Admin Pages */
1116
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-user-profile-page.php';
1117
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-status-page.php';
1118
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-entity-type-admin-service.php';
1119
+
1120
+        /**
1121
+         * The class responsible for defining all actions that occur in the public-facing
1122
+         * side of the site.
1123
+         */
1124
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-public.php';
1125
+
1126
+        /**
1127
+         * The shortcode abstract class.
1128
+         */
1129
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-shortcode.php';
1130
+
1131
+        /**
1132
+         * The Timeline shortcode.
1133
+         */
1134
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-timeline-shortcode.php';
1135
+
1136
+        /**
1137
+         * The Navigator shortcode.
1138
+         */
1139
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-navigator-shortcode.php';
1140
+
1141
+        /**
1142
+         * The Products Navigator shortcode.
1143
+         */
1144
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-products-navigator-shortcode.php';
1145
+
1146
+        /**
1147
+         * The chord shortcode.
1148
+         */
1149
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-chord-shortcode.php';
1150
+
1151
+        /**
1152
+         * The geomap shortcode.
1153
+         */
1154
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-geomap-shortcode.php';
1155
+
1156
+        /**
1157
+         * The entity cloud shortcode.
1158
+         */
1159
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-shortcode.php';
1160
+
1161
+        /**
1162
+         * The entity glossary shortcode.
1163
+         */
1164
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-alphabet-service.php';
1165
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-vocabulary-shortcode.php';
1166
+
1167
+        /**
1168
+         * Faceted Search shortcode.
1169
+         */
1170
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-faceted-search-shortcode.php';
1171
+
1172
+        /**
1173
+         * The ShareThis service.
1174
+         */
1175
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-sharethis-service.php';
1176
+
1177
+        /**
1178
+         * The SEO service.
1179
+         */
1180
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-seo-service.php';
1181
+
1182
+        /**
1183
+         * The AMP service.
1184
+         */
1185
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-amp-service.php';
1186
+
1187
+        /** Widgets */
1188
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-widget.php';
1189
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-related-entities-cloud-widget.php';
1190
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-context-cards.php';
1191
+
1192
+        /*
1193 1193
 		 * Schema.org Services.
1194 1194
 		 *
1195 1195
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1196 1196
 		 */
1197
-		if ( WL_ALL_ENTITY_TYPES ) {
1198
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1199
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1200
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1201
-			new Wordlift_Schemaorg_Sync_Service();
1202
-			$schemaorg_property_service = new Wordlift_Schemaorg_Property_Service();
1203
-			new Wordlift_Schemaorg_Class_Service();
1204
-		} else {
1205
-			$schemaorg_property_service = null;
1206
-		}
1207
-
1208
-		$this->loader = new Wordlift_Loader();
1209
-		/**
1210
-		 * @since 3.30.0
1211
-		 */
1212
-		$this->features_registry = Features_Registry::get_instance();
1197
+        if ( WL_ALL_ENTITY_TYPES ) {
1198
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-sync-service.php';
1199
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-property-service.php';
1200
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/schemaorg/class-wordlift-schemaorg-class-service.php';
1201
+            new Wordlift_Schemaorg_Sync_Service();
1202
+            $schemaorg_property_service = new Wordlift_Schemaorg_Property_Service();
1203
+            new Wordlift_Schemaorg_Class_Service();
1204
+        } else {
1205
+            $schemaorg_property_service = null;
1206
+        }
1213 1207
 
1214
-		// Instantiate a global logger.
1215
-		global $wl_logger;
1216
-		$wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1208
+        $this->loader = new Wordlift_Loader();
1209
+        /**
1210
+         * @since 3.30.0
1211
+         */
1212
+        $this->features_registry = Features_Registry::get_instance();
1217 1213
 
1218
-		// Load the `wl-api` end-point.
1219
-		new Wordlift_Http_Api();
1214
+        // Instantiate a global logger.
1215
+        global $wl_logger;
1216
+        $wl_logger = Wordlift_Log_Service::get_logger( 'WordLift' );
1220 1217
 
1221
-		// Load the Install Service.
1222
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'install/class-wordlift-install-service.php';
1223
-		$this->install_service = new Wordlift_Install_Service();
1218
+        // Load the `wl-api` end-point.
1219
+        new Wordlift_Http_Api();
1224 1220
 
1225
-		/** Services. */
1226
-		// Create the configuration service.
1227
-		$this->configuration_service = new Wordlift_Configuration_Service();
1228
-		$api_service                 = new Wordlift_Api_Service( $this->configuration_service );
1221
+        // Load the Install Service.
1222
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'install/class-wordlift-install-service.php';
1223
+        $this->install_service = new Wordlift_Install_Service();
1229 1224
 
1230
-		// Create an entity type service instance. It'll be later bound to the init action.
1231
-		$this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1225
+        /** Services. */
1226
+        // Create the configuration service.
1227
+        $this->configuration_service = new Wordlift_Configuration_Service();
1228
+        $api_service                 = new Wordlift_Api_Service( $this->configuration_service );
1232 1229
 
1233
-		// Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1234
-		$this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1230
+        // Create an entity type service instance. It'll be later bound to the init action.
1231
+        $this->entity_post_type_service = new Wordlift_Entity_Post_Type_Service( Wordlift_Entity_Service::TYPE_NAME, $this->configuration_service->get_entity_base_path() );
1235 1232
 
1236
-		// Create an instance of the UI service.
1237
-		$this->ui_service = new Wordlift_UI_Service();
1233
+        // Create an entity link service instance. It'll be later bound to the post_type_link and pre_get_posts actions.
1234
+        $this->entity_link_service = new Wordlift_Entity_Link_Service( $this->entity_post_type_service, $this->configuration_service->get_entity_base_path() );
1238 1235
 
1239
-		// Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
1240
-		$this->thumbnail_service = new Wordlift_Thumbnail_Service();
1236
+        // Create an instance of the UI service.
1237
+        $this->ui_service = new Wordlift_UI_Service();
1241 1238
 
1242
-		$this->sparql_service        = new Wordlift_Sparql_Service();
1243
-		$schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1244
-		$this->notice_service        = new Wordlift_Notice_Service();
1245
-		$this->relation_service      = new Wordlift_Relation_Service();
1239
+        // Create an instance of the Thumbnail service. Later it'll be hooked to post meta events.
1240
+        $this->thumbnail_service = new Wordlift_Thumbnail_Service();
1246 1241
 
1247
-		$entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1248
-		$this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1249
-		$this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1250
-		$this->user_service       = new Wordlift_User_Service( $this->sparql_service, $this->entity_service );
1242
+        $this->sparql_service        = new Wordlift_Sparql_Service();
1243
+        $schema_url_property_service = new Wordlift_Schema_Url_Property_Service( $this->sparql_service );
1244
+        $this->notice_service        = new Wordlift_Notice_Service();
1245
+        $this->relation_service      = new Wordlift_Relation_Service();
1251 1246
 
1252
-		// Instantiate the JSON-LD service.
1253
-		$property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1247
+        $entity_uri_cache_service = new Wordlift_File_Cache_Service( WL_TEMP_DIR . 'entity_uri/' );
1248
+        $this->entity_uri_service = new Wordlift_Cached_Entity_Uri_Service( $this->configuration_service, $entity_uri_cache_service );
1249
+        $this->entity_service     = new Wordlift_Entity_Service( $this->ui_service, $this->relation_service, $this->entity_uri_service );
1250
+        $this->user_service       = new Wordlift_User_Service( $this->sparql_service, $this->entity_service );
1254 1251
 
1255
-		/** Linked Data. */
1256
-		$this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1257
-		$this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1252
+        // Instantiate the JSON-LD service.
1253
+        $property_getter = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1258 1254
 
1259
-		$this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1255
+        /** Linked Data. */
1256
+        $this->storage_factory   = new Wordlift_Storage_Factory( $this->entity_service, $this->user_service, $property_getter );
1257
+        $this->rendition_factory = new Wordlift_Sparql_Tuple_Rendition_Factory( $this->entity_service );
1260 1258
 
1261
-		// Create a new instance of the Redirect service.
1262
-		$this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_uri_service );
1263
-		$this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1259
+        $this->schema_service = new Wordlift_Schema_Service( $this->storage_factory, $this->rendition_factory, $this->configuration_service );
1264 1260
 
1265
-		// Create a new instance of the Timeline service and Timeline shortcode.
1266
-		$this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1261
+        // Create a new instance of the Redirect service.
1262
+        $this->redirect_service    = new Wordlift_Redirect_Service( $this->entity_uri_service );
1263
+        $this->entity_type_service = new Wordlift_Entity_Type_Service( $this->schema_service );
1267 1264
 
1268
-		$this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1265
+        // Create a new instance of the Timeline service and Timeline shortcode.
1266
+        $this->timeline_service = new Wordlift_Timeline_Service( $this->entity_service, $this->entity_type_service );
1269 1267
 
1270
-		$this->topic_taxonomy_service        = new Wordlift_Topic_Taxonomy_Service();
1271
-		$this->entity_types_taxonomy_service = new Wordlift_Entity_Type_Taxonomy_Service();
1268
+        $this->entity_types_taxonomy_walker = new Wordlift_Entity_Types_Taxonomy_Walker();
1272 1269
 
1273
-		// Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
1274
-		$this->sharethis_service = new Wordlift_ShareThis_Service();
1270
+        $this->topic_taxonomy_service        = new Wordlift_Topic_Taxonomy_Service();
1271
+        $this->entity_types_taxonomy_service = new Wordlift_Entity_Type_Taxonomy_Service();
1275 1272
 
1276
-		// Create an instance of the PrimaShop adapter.
1277
-		$this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1273
+        // Create an instance of the ShareThis service, later we hook it to the_content and the_excerpt filters.
1274
+        $this->sharethis_service = new Wordlift_ShareThis_Service();
1278 1275
 
1279
-		// Create an import service instance to hook later to WP's import function.
1280
-		$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() );
1276
+        // Create an instance of the PrimaShop adapter.
1277
+        $this->primashop_adapter = new Wordlift_PrimaShop_Adapter();
1281 1278
 
1282
-		$uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1279
+        // Create an import service instance to hook later to WP's import function.
1280
+        $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() );
1283 1281
 
1284
-		// Create the entity rating service.
1285
-		$this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1282
+        $uri_service = new Wordlift_Uri_Service( $GLOBALS['wpdb'] );
1286 1283
 
1287
-		// Create entity list customization (wp-admin/edit.php).
1288
-		$this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1284
+        // Create the entity rating service.
1285
+        $this->rating_service = new Wordlift_Rating_Service( $this->entity_service, $this->entity_type_service, $this->notice_service );
1289 1286
 
1290
-		// Create a new instance of the Redirect service.
1291
-		$this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1287
+        // Create entity list customization (wp-admin/edit.php).
1288
+        $this->entity_list_service = new Wordlift_Entity_List_Service( $this->rating_service );
1292 1289
 
1293
-		// Create an instance of the Publisher Service and the AJAX Adapter.
1294
-		$this->publisher_service = new Wordlift_Publisher_Service( $this->configuration_service );
1295
-		$this->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1296
-		$this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1290
+        // Create a new instance of the Redirect service.
1291
+        $this->dashboard_service = new Wordlift_Dashboard_Service( $this->rating_service, $this->entity_service );
1297 1292
 
1298
-		$attachment_service = new Wordlift_Attachment_Service();
1293
+        // Create an instance of the Publisher Service and the AJAX Adapter.
1294
+        $this->publisher_service = new Wordlift_Publisher_Service( $this->configuration_service );
1295
+        $this->property_factory  = new Wordlift_Property_Factory( $schema_url_property_service );
1296
+        $this->property_factory->register( Wordlift_Schema_Url_Property_Service::META_KEY, $schema_url_property_service );
1299 1297
 
1300
-		// Instantiate the JSON-LD service.
1301
-		$property_getter                       = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1302
-		$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 );
1303
-		$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, $this->post_to_jsonld_converter );
1304
-		$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 );
1305
-		$this->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1298
+        $attachment_service = new Wordlift_Attachment_Service();
1306 1299
 
1307
-		$jsonld_cache                            = new Ttl_Cache( 'jsonld', 86400 );
1308
-		$this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->configuration_service, $jsonld_cache );
1309
-		/*
1300
+        // Instantiate the JSON-LD service.
1301
+        $property_getter                       = Wordlift_Property_Getter_Factory::create( $this->entity_service );
1302
+        $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 );
1303
+        $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, $this->post_to_jsonld_converter );
1304
+        $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 );
1305
+        $this->jsonld_website_converter        = new Wordlift_Website_Jsonld_Converter( $this->entity_type_service, $this->entity_service, $this->user_service, $attachment_service, $this->configuration_service );
1306
+
1307
+        $jsonld_cache                            = new Ttl_Cache( 'jsonld', 86400 );
1308
+        $this->cached_postid_to_jsonld_converter = new Wordlift_Cached_Post_Converter( $this->postid_to_jsonld_converter, $this->configuration_service, $jsonld_cache );
1309
+        /*
1310 1310
 		 * Load the `Wordlift_Term_JsonLd_Adapter`.
1311 1311
 		 *
1312 1312
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/892
1313 1313
 		 *
1314 1314
 		 * @since 3.20.0
1315 1315
 		 */
1316
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-term-jsonld-adapter.php';
1317
-
1318
-		$term_jsonld_adapter  = new Wordlift_Term_JsonLd_Adapter( $this->entity_uri_service, $this->cached_postid_to_jsonld_converter );
1319
-		$this->jsonld_service = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter, $term_jsonld_adapter );
1320
-
1321
-		$jsonld_service = new Jsonld_Service(
1322
-			$this->jsonld_service,
1323
-			$term_jsonld_adapter,
1324
-			new Jsonld_User_Service( $this->user_service ) );
1325
-		new Jsonld_Endpoint( $jsonld_service, $this->entity_uri_service );
1326
-
1327
-		// Prints the JSON-LD in the head.
1328
-		new Jsonld_Adapter( $this->jsonld_service );
1329
-
1330
-		new Jsonld_By_Id_Endpoint( $this->jsonld_service, $this->entity_uri_service );
1331
-
1332
-		$this->key_validation_service = new Wordlift_Key_Validation_Service( $this->configuration_service );
1333
-		$this->content_filter_service = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1334
-		// Creating Faq Content filter service.
1335
-		$this->faq_content_filter_service = new Faq_Content_Filter();
1336
-		$this->relation_rebuild_service   = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1337
-		$this->sample_data_service        = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1338
-		$this->sample_data_ajax_adapter   = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1339
-		$this->reference_rebuild_service  = new Wordlift_Reference_Rebuild_Service( $this->entity_service );
1340
-
1341
-		$this->loader->add_action( 'enqueue_block_editor_assets', $this, 'add_wl_enabled_blocks' );
1342
-		$this->loader->add_action( 'admin_enqueue_scripts', $this, 'add_wl_enabled_blocks' );
1343
-
1344
-		/**
1345
-		 * Filter: wl_feature__enable__blocks.
1346
-		 *
1347
-		 * @param bool whether the blocks needed to be registered, defaults to true.
1348
-		 *
1349
-		 * @return bool
1350
-		 * @since 3.27.6
1351
-		 */
1352
-		if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
1353
-			// Initialize the short-codes.
1354
-			new Async_Template_Decorator( new Wordlift_Navigator_Shortcode() );
1355
-			new Wordlift_Chord_Shortcode();
1356
-			new Wordlift_Geomap_Shortcode();
1357
-			new Wordlift_Timeline_Shortcode();
1358
-			new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service, $this->entity_service );
1359
-			new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1360
-			new Async_Template_Decorator( new Wordlift_Faceted_Search_Shortcode() );
1361
-		}
1362
-
1363
-		new Wordlift_Products_Navigator_Shortcode();
1364
-
1365
-
1366
-		// Initialize the Context Cards Service
1367
-		$this->context_cards_service = new Wordlift_Context_Cards_Service();
1368
-
1369
-		// Initialize the SEO service.
1370
-		new Wordlift_Seo_Service();
1371
-
1372
-		// Initialize the AMP service.
1373
-		new Wordlift_AMP_Service( $this->jsonld_service );
1374
-
1375
-		/** Services. */
1376
-		$this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1377
-		new Wordlift_Image_Service();
1378
-
1379
-		/** Adapters. */
1380
-		$this->entity_type_adapter    = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1381
-		$this->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter( $this->publisher_service );
1382
-		$this->tinymce_adapter        = new Wordlift_Tinymce_Adapter( $this );
1383
-		//$this->faq_tinymce_adapter      = new Faq_Tinymce_Adapter();
1384
-		$this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1385
-
1386
-		/*
1316
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wordlift-term-jsonld-adapter.php';
1317
+
1318
+        $term_jsonld_adapter  = new Wordlift_Term_JsonLd_Adapter( $this->entity_uri_service, $this->cached_postid_to_jsonld_converter );
1319
+        $this->jsonld_service = new Wordlift_Jsonld_Service( $this->entity_service, $this->cached_postid_to_jsonld_converter, $this->jsonld_website_converter, $term_jsonld_adapter );
1320
+
1321
+        $jsonld_service = new Jsonld_Service(
1322
+            $this->jsonld_service,
1323
+            $term_jsonld_adapter,
1324
+            new Jsonld_User_Service( $this->user_service ) );
1325
+        new Jsonld_Endpoint( $jsonld_service, $this->entity_uri_service );
1326
+
1327
+        // Prints the JSON-LD in the head.
1328
+        new Jsonld_Adapter( $this->jsonld_service );
1329
+
1330
+        new Jsonld_By_Id_Endpoint( $this->jsonld_service, $this->entity_uri_service );
1331
+
1332
+        $this->key_validation_service = new Wordlift_Key_Validation_Service( $this->configuration_service );
1333
+        $this->content_filter_service = new Wordlift_Content_Filter_Service( $this->entity_service, $this->configuration_service, $this->entity_uri_service );
1334
+        // Creating Faq Content filter service.
1335
+        $this->faq_content_filter_service = new Faq_Content_Filter();
1336
+        $this->relation_rebuild_service   = new Wordlift_Relation_Rebuild_Service( $this->content_filter_service, $this->entity_service );
1337
+        $this->sample_data_service        = new Wordlift_Sample_Data_Service( $this->entity_type_service, $this->configuration_service, $this->user_service );
1338
+        $this->sample_data_ajax_adapter   = new Wordlift_Sample_Data_Ajax_Adapter( $this->sample_data_service );
1339
+        $this->reference_rebuild_service  = new Wordlift_Reference_Rebuild_Service( $this->entity_service );
1340
+
1341
+        $this->loader->add_action( 'enqueue_block_editor_assets', $this, 'add_wl_enabled_blocks' );
1342
+        $this->loader->add_action( 'admin_enqueue_scripts', $this, 'add_wl_enabled_blocks' );
1343
+
1344
+        /**
1345
+         * Filter: wl_feature__enable__blocks.
1346
+         *
1347
+         * @param bool whether the blocks needed to be registered, defaults to true.
1348
+         *
1349
+         * @return bool
1350
+         * @since 3.27.6
1351
+         */
1352
+        if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
1353
+            // Initialize the short-codes.
1354
+            new Async_Template_Decorator( new Wordlift_Navigator_Shortcode() );
1355
+            new Wordlift_Chord_Shortcode();
1356
+            new Wordlift_Geomap_Shortcode();
1357
+            new Wordlift_Timeline_Shortcode();
1358
+            new Wordlift_Related_Entities_Cloud_Shortcode( $this->relation_service, $this->entity_service );
1359
+            new Wordlift_Vocabulary_Shortcode( $this->configuration_service );
1360
+            new Async_Template_Decorator( new Wordlift_Faceted_Search_Shortcode() );
1361
+        }
1362
+
1363
+        new Wordlift_Products_Navigator_Shortcode();
1364
+
1365
+
1366
+        // Initialize the Context Cards Service
1367
+        $this->context_cards_service = new Wordlift_Context_Cards_Service();
1368
+
1369
+        // Initialize the SEO service.
1370
+        new Wordlift_Seo_Service();
1371
+
1372
+        // Initialize the AMP service.
1373
+        new Wordlift_AMP_Service( $this->jsonld_service );
1374
+
1375
+        /** Services. */
1376
+        $this->google_analytics_export_service = new Wordlift_Google_Analytics_Export_Service();
1377
+        new Wordlift_Image_Service();
1378
+
1379
+        /** Adapters. */
1380
+        $this->entity_type_adapter    = new Wordlift_Entity_Type_Adapter( $this->entity_type_service );
1381
+        $this->publisher_ajax_adapter = new Wordlift_Publisher_Ajax_Adapter( $this->publisher_service );
1382
+        $this->tinymce_adapter        = new Wordlift_Tinymce_Adapter( $this );
1383
+        //$this->faq_tinymce_adapter      = new Faq_Tinymce_Adapter();
1384
+        $this->relation_rebuild_adapter = new Wordlift_Relation_Rebuild_Adapter( $this->relation_rebuild_service );
1385
+
1386
+        /*
1387 1387
 		 * Exclude our public js from WP-Rocket.
1388 1388
 		 *
1389 1389
 		 * @since 3.19.4
1390 1390
 		 *
1391 1391
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/842.
1392 1392
 		 */
1393
-		new Wordlift_WpRocket_Adapter();
1394
-
1395
-		// Create a Rebuild Service instance, which we'll later bound to an ajax call.
1396
-		$this->rebuild_service = new Wordlift_Rebuild_Service(
1397
-			$this->sparql_service,
1398
-			$uri_service
1399
-		);
1400
-
1401
-		$that = $this;
1402
-		add_action( 'plugins_loaded', function () use ( $that ) {
1403
-			if ( ! apply_filters( 'wl_feature__enable__dataset-ng', false ) ) {
1404
-				new Wordlift_Linked_Data_Service( $that->entity_service, $that->entity_type_service, $that->schema_service, $that->sparql_service );
1405
-				new Wordlift_Sparql_Query_Async_Task();
1406
-				new Wordlift_Push_References_Async_Task();
1407
-			}
1408
-		} );
1409
-
1410
-		/** WordPress Admin UI. */
1411
-
1412
-		// UI elements.
1413
-		$this->input_element           = new Wordlift_Admin_Input_Element();
1414
-		$this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1415
-		$this->select2_element         = new Wordlift_Admin_Select2_Element();
1416
-		$this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1417
-		$this->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1418
-		$tabs_element                  = new Wordlift_Admin_Tabs_Element();
1419
-		$this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element );
1420
-		$this->author_element          = new Wordlift_Admin_Author_Element( $this->publisher_service, $this->select2_element );
1421
-
1422
-		$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 );
1423
-		$this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1424
-
1425
-		$this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $this->configuration_service, $this->input_element, $this->radio_input_element );
1426
-		$this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $this->analytics_settings_page );
1427
-		$this->analytics_connect                   = new Wordlift_Analytics_Connect();
1428
-
1429
-		// Pages.
1430
-		/*
1393
+        new Wordlift_WpRocket_Adapter();
1394
+
1395
+        // Create a Rebuild Service instance, which we'll later bound to an ajax call.
1396
+        $this->rebuild_service = new Wordlift_Rebuild_Service(
1397
+            $this->sparql_service,
1398
+            $uri_service
1399
+        );
1400
+
1401
+        $that = $this;
1402
+        add_action( 'plugins_loaded', function () use ( $that ) {
1403
+            if ( ! apply_filters( 'wl_feature__enable__dataset-ng', false ) ) {
1404
+                new Wordlift_Linked_Data_Service( $that->entity_service, $that->entity_type_service, $that->schema_service, $that->sparql_service );
1405
+                new Wordlift_Sparql_Query_Async_Task();
1406
+                new Wordlift_Push_References_Async_Task();
1407
+            }
1408
+        } );
1409
+
1410
+        /** WordPress Admin UI. */
1411
+
1412
+        // UI elements.
1413
+        $this->input_element           = new Wordlift_Admin_Input_Element();
1414
+        $this->radio_input_element     = new Wordlift_Admin_Radio_Input_Element();
1415
+        $this->select2_element         = new Wordlift_Admin_Select2_Element();
1416
+        $this->language_select_element = new Wordlift_Admin_Language_Select_Element();
1417
+        $this->country_select_element  = new Wordlift_Admin_Country_Select_Element();
1418
+        $tabs_element                  = new Wordlift_Admin_Tabs_Element();
1419
+        $this->publisher_element       = new Wordlift_Admin_Publisher_Element( $this->configuration_service, $this->publisher_service, $tabs_element, $this->select2_element );
1420
+        $this->author_element          = new Wordlift_Admin_Author_Element( $this->publisher_service, $this->select2_element );
1421
+
1422
+        $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 );
1423
+        $this->settings_page_action_link = new Wordlift_Admin_Settings_Page_Action_Link( $this->settings_page );
1424
+
1425
+        $this->analytics_settings_page             = new Wordlift_Admin_Settings_Analytics_Page( $this->configuration_service, $this->input_element, $this->radio_input_element );
1426
+        $this->analytics_settings_page_action_link = new Wordlift_Admin_Settings_Analytics_Page_Action_Link( $this->analytics_settings_page );
1427
+        $this->analytics_connect                   = new Wordlift_Analytics_Connect();
1428
+
1429
+        // Pages.
1430
+        /*
1431 1431
 		 * Call the `wl_can_see_classification_box` filter to determine whether we can display the classification box.
1432 1432
 		 *
1433 1433
 		 * @since 3.20.3
1434 1434
 		 *
1435 1435
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/914
1436 1436
 		 */
1437
-		if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1438
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
1439
-			new Wordlift_Admin_Post_Edit_Page( $this );
1440
-		}
1441
-		new Wordlift_Entity_Type_Admin_Service();
1437
+        if ( apply_filters( 'wl_can_see_classification_box', true ) ) {
1438
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-wordlift-admin-post-edit-page.php';
1439
+            new Wordlift_Admin_Post_Edit_Page( $this );
1440
+        }
1441
+        new Wordlift_Entity_Type_Admin_Service();
1442 1442
 
1443
-		// create an instance of the entity type list admin page controller.
1444
-		$this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1443
+        // create an instance of the entity type list admin page controller.
1444
+        $this->entity_type_admin_page = new Wordlift_Admin_Entity_Taxonomy_List_Page();
1445 1445
 
1446
-		// create an instance of the entity type setting admin page controller.
1447
-		$this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1446
+        // create an instance of the entity type setting admin page controller.
1447
+        $this->entity_type_settings_admin_page = new Wordlift_Admin_Entity_Type_Settings();
1448 1448
 
1449
-		/** Widgets */
1450
-		$this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1449
+        /** Widgets */
1450
+        $this->related_entities_cloud_widget = new Wordlift_Related_Entities_Cloud_Widget();
1451 1451
 
1452
-		/* WordPress Admin. */
1453
-		$this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1454
-		$this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1452
+        /* WordPress Admin. */
1453
+        $this->download_your_data_page = new Wordlift_Admin_Download_Your_Data_Page( $this->configuration_service );
1454
+        $this->status_page             = new Wordlift_Admin_Status_Page( $this->entity_service, $this->sparql_service );
1455 1455
 
1456
-		// Create an instance of the install wizard.
1457
-		$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 );
1456
+        // Create an instance of the install wizard.
1457
+        $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 );
1458 1458
 
1459
-		$this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1459
+        $this->category_taxonomy_service = new Wordlift_Category_Taxonomy_Service( $this->entity_post_type_service );
1460 1460
 
1461
-		// User Profile.
1462
-		new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1461
+        // User Profile.
1462
+        new Wordlift_Admin_User_Profile_Page( $this->author_element, $this->user_service );
1463 1463
 
1464
-		$this->entity_page_service = new Wordlift_Entity_Page_Service();
1464
+        $this->entity_page_service = new Wordlift_Entity_Page_Service();
1465 1465
 
1466
-		// Load the debug service if WP is in debug mode.
1467
-		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1468
-			require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1469
-			new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1470
-		}
1466
+        // Load the debug service if WP is in debug mode.
1467
+        if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1468
+            require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-debug-service.php';
1469
+            new Wordlift_Debug_Service( $this->entity_service, $uri_service );
1470
+        }
1471 1471
 
1472
-		// Remote Image Service.
1473
-		new Wordlift_Remote_Image_Service();
1472
+        // Remote Image Service.
1473
+        new Wordlift_Remote_Image_Service();
1474 1474
 
1475
-		/*
1475
+        /*
1476 1476
 		 * Provides mappings between post types and entity types.
1477 1477
 		 *
1478 1478
 		 * @since 3.20.0
1479 1479
 		 *
1480 1480
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/852.
1481 1481
 		 */
1482
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-action.php';
1483
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-service.php';
1484
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1482
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wordlift-batch-action.php';
1483
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-service.php';
1484
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/mapping/class-wordlift-mapping-ajax-adapter.php';
1485 1485
 
1486
-		// Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1487
-		new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1486
+        // Create an instance of the Mapping Service and assign it to the Ajax Adapter.
1487
+        new Wordlift_Mapping_Ajax_Adapter( new Wordlift_Mapping_Service( Wordlift_Entity_Type_Service::get_instance() ) );
1488 1488
 
1489
-		/*
1489
+        /*
1490 1490
 		 * Batch Operations. They're similar to Batch Actions but do not require working on post types.
1491 1491
 		 *
1492 1492
 		 * Eventually Batch Actions will become Batch Operations.
1493 1493
 		 *
1494 1494
 		 * @since 3.20.0
1495 1495
 		 */
1496
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/intf-wordlift-batch-operation.php';
1497
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1498
-		/*
1496
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/intf-wordlift-batch-operation.php';
1497
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/batch/class-wordlift-batch-operation-ajax-adapter.php';
1498
+        /*
1499 1499
 		 * Load the Mappings JSON-LD post processing.
1500 1500
 		 *
1501 1501
 		 * @since 3.25.0
1502 1502
 		 */
1503 1503
 
1504
-		$mappings_dbo           = new Mappings_DBO();
1505
-		$default_rule_validator = new Taxonomy_Rule_Validator();
1506
-		new Post_Type_Rule_Validator();
1507
-		// Taxonomy term rule validator for validating rules for term pages.
1508
-		new Taxonomy_Term_Rule_Validator();
1509
-		new Post_Taxonomy_Term_Rule_Validator();
1510
-		$rule_validators_registry = new Rule_Validators_Registry( $default_rule_validator );
1511
-		$rule_groups_validator    = new Rule_Groups_Validator( $rule_validators_registry );
1512
-		$mappings_validator       = new Mappings_Validator( $mappings_dbo, $rule_groups_validator );
1513
-
1514
-		new Url_To_Entity_Transform_Function( $this->entity_uri_service );
1515
-		new Taxonomy_To_Terms_Transform_Function();
1516
-		new Post_Id_To_Entity_Transform_Function();
1517
-		$mappings_transform_functions_registry = new Mappings_Transform_Functions_Registry();
1518
-
1519
-		/**
1520
-		 * @since 3.27.1
1521
-		 * Intiailize the acf group data formatter.
1522
-		 */
1523
-		new Acf_Group_Formatter();
1524
-		new Jsonld_Converter( $mappings_validator, $mappings_transform_functions_registry );
1525
-
1526
-		/**
1527
-		 * @since 3.26.0
1528
-		 * Initialize the Faq JSON LD converter here - disabled.
1529
-		 */
1530
-		// new Faq_To_Jsonld_Converter();
1531
-		/*
1504
+        $mappings_dbo           = new Mappings_DBO();
1505
+        $default_rule_validator = new Taxonomy_Rule_Validator();
1506
+        new Post_Type_Rule_Validator();
1507
+        // Taxonomy term rule validator for validating rules for term pages.
1508
+        new Taxonomy_Term_Rule_Validator();
1509
+        new Post_Taxonomy_Term_Rule_Validator();
1510
+        $rule_validators_registry = new Rule_Validators_Registry( $default_rule_validator );
1511
+        $rule_groups_validator    = new Rule_Groups_Validator( $rule_validators_registry );
1512
+        $mappings_validator       = new Mappings_Validator( $mappings_dbo, $rule_groups_validator );
1513
+
1514
+        new Url_To_Entity_Transform_Function( $this->entity_uri_service );
1515
+        new Taxonomy_To_Terms_Transform_Function();
1516
+        new Post_Id_To_Entity_Transform_Function();
1517
+        $mappings_transform_functions_registry = new Mappings_Transform_Functions_Registry();
1518
+
1519
+        /**
1520
+         * @since 3.27.1
1521
+         * Intiailize the acf group data formatter.
1522
+         */
1523
+        new Acf_Group_Formatter();
1524
+        new Jsonld_Converter( $mappings_validator, $mappings_transform_functions_registry );
1525
+
1526
+        /**
1527
+         * @since 3.26.0
1528
+         * Initialize the Faq JSON LD converter here - disabled.
1529
+         */
1530
+        // new Faq_To_Jsonld_Converter();
1531
+        /*
1532 1532
 		 * Use the Templates Ajax Endpoint to load HTML templates for the legacy Angular app via admin-ajax.php
1533 1533
 		 * end-point.
1534 1534
 		 *
1535 1535
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/834
1536 1536
 		 * @since 3.24.4
1537 1537
 		 */
1538
-		new Templates_Ajax_Endpoint();
1539
-		// Call this static method to register FAQ routes to rest api - disabled
1540
-		//Faq_Rest_Controller::register_routes();
1538
+        new Templates_Ajax_Endpoint();
1539
+        // Call this static method to register FAQ routes to rest api - disabled
1540
+        //Faq_Rest_Controller::register_routes();
1541 1541
 
1542
-		/*
1542
+        /*
1543 1543
 		 * Create a singleton for the Analysis_Response_Ops_Factory.
1544 1544
 		 */
1545
-		$entity_helper = new Entity_Helper( $this->entity_uri_service, $this->entity_service );
1546
-		/**
1547
-		 * @since 3.32.0
1548
-		 * Initialize a local entity provider which acts as an abstraction layer
1549
-		 * between the different types of objects in wordpress.
1550
-		 */
1551
-		$entity_provider_registry = new Entity_Provider_Registry();
1552
-
1553
-		/**
1554
-		 * @since 3.32.0
1555
-		 * The post entity provider has the legacy code which provides the entity
1556
-		 * if the object is post {@link \Wordlift\Object_Type_Enum::POST}
1557
-		 */
1558
-		new Post_Entity_Provider( $this->entity_uri_service,
1559
-			$this->entity_type_service, $this->storage_factory->post_images() );
1560
-		/**
1561
-		 * @since 3.32.0
1562
-		 * The term entity provider provides the entity
1563
-		 * if the object is term {@link \Wordlift\Object_Type_Enum::POST}
1564
-		 */
1565
-		new Term_Entity_Provider();
1566
-
1567
-		new Analysis_Response_Ops_Factory(
1568
-			$this->entity_uri_service,
1569
-			$entity_helper,
1570
-			$entity_provider_registry
1571
-		);
1572
-
1573
-		/** WL Autocomplete. */
1574
-		$autocomplete_service       = new All_Autocomplete_Service( array(
1575
-			new Local_Autocomplete_Service(),
1576
-			new Linked_Data_Autocomplete_Service( $this->configuration_service, $entity_helper, $this->entity_uri_service, $this->entity_service ),
1577
-		) );
1578
-		$this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $autocomplete_service );
1579
-
1580
-		/**
1581
-		 * @since 3.27.2
1582
-		 * Integrate the recipe maker jsonld & set recipe
1583
-		 * as default entity type to the wprm_recipe CPT.
1584
-		 */
1585
-		new Recipe_Maker_Post_Type_Hook();
1586
-		$recipe_maker_validation_service = new Recipe_Maker_Validation_Service();
1587
-		new Recipe_Maker_Jsonld_Hook( $attachment_service, $recipe_maker_validation_service );
1588
-		new Recipe_Maker_After_Get_Jsonld_Hook( $recipe_maker_validation_service );
1589
-		new Recipe_Maker_Warning( $recipe_maker_validation_service );
1590
-		new Yoast_Jsonld( $recipe_maker_validation_service );
1591
-
1592
-		/**
1593
-		 * @since 3.27.4
1594
-		 * Add the faq duplicate markup hook.
1595
-		 */
1596
-		new Faq_Duplicate_Markup_Remover();
1597
-		/**
1598
-		 * @since 3.33.1
1599
-		 * Remove the duplicate HowTo Markup.
1600
-		 */
1601
-		new How_To_Duplicate_Markup_Remover();
1602
-
1603
-		/**
1604
-		 * @since 3.27.8
1605
-		 * @see https://github.com/insideout10/wordlift-plugin/issues/1248
1606
-		 */
1607
-		new Key_Validation_Notice( $this->key_validation_service, $this->configuration_service );
1608
-		/**
1609
-		 * @since 3.28.0
1610
-		 * @see https://github.com/insideout10/wordlift-plugin/issues?q=assignee%3Anaveen17797+is%3Aopen
1611
-		 */
1612
-		new Entity_No_Index_Flag();
1613
-
1614
-		/**
1615
-		 * @since 3.29.0
1616
-		 * @see https://github.com/insideout10/wordlift-plugin/issues/1304
1617
-		 */
1618
-		new Entity_Rest_Service( $this->entity_type_service );
1619
-
1620
-		/**
1621
-		 * Expand author in to references.
1622
-		 * @since 3.30.0
1623
-		 * @see https://github.com/insideout10/wordlift-plugin/issues/1318
1624
-		 */
1625
-
1626
-		add_action( 'plugins_loaded', function () use ( $that ) {
1627
-
1628
-			if ( apply_filters( 'wl_feature__enable__article-wrapper', false ) ) {
1629
-				new Jsonld_Article_Wrapper( Wordlift_Post_To_Jsonld_Converter::get_instance(), $that->cached_postid_to_jsonld_converter );
1630
-			}
1631
-
1632
-			if ( apply_filters( 'wl_feature__enable__match-terms', false ) ) {
1633
-				$vocabulary_loader = new Vocabulary_Loader();
1634
-				$vocabulary_loader->init_vocabulary();
1635
-			}
1636
-
1637
-		} );
1638
-
1639
-		/**
1640
-		 * @since 3.30.0
1641
-		 * Add a checkbox to user option screen for wordlift admin.
1642
-		 */
1643
-		$wordlift_admin_checkbox = new Admin_User_Option();
1644
-		$wordlift_admin_checkbox->connect_hook();
1645
-
1646
-		/**
1647
-		 *Added for feature request 1496 (Webhooks)
1648
-		 */
1649
-		$webhook_loader = new Webhooks_Loader();
1650
-		$webhook_loader->init_all_dependencies();
1651
-
1652
-		/**
1653
-		 * @since 3.31.0
1654
-		 * Init loader class for videoobject.
1655
-		 */
1656
-		$videoobject_loader = new Loader();
1657
-		$videoobject_loader->init_feature();
1658
-		/**
1659
-		 * @since 3.31.5
1660
-		 * Create configuration endpoint for webapp to configure.
1661
-		 */
1662
-		new Config( $this->admin_setup, $this->key_validation_service, $this->configuration_service );
1663
-		/**
1664
-		 * @since 3.31.7
1665
-		 * Remove duplicate videoobject.
1666
-		 */
1667
-		new Videoobject_Duplicate_Remover();
1668
-		$synonym_loader = new \Wordlift\Synonym\Loader();
1669
-		$synonym_loader->init_feature();
1670
-		/**
1671
-		 * @since 3.32.0
1672
-		 * Create loader for vocabulary terms.
1673
-		 */
1674
-		$vocabulary_terms_loader = new Vocabulary_Terms_Loader( $this->entity_type_service, $property_getter );
1675
-		$vocabulary_terms_loader->init_feature();
1676
-
1677
-		new Entity_Type_Change_Handler(
1678
-			$this->entity_service,
1679
-			$this->entity_type_service
1680
-		);
1681
-
1682
-		new Entity_Type_Setter();
1683
-		$no_editor_analysis_loader = new \Wordlift\No_Editor_Analysis\Loader();
1684
-		$no_editor_analysis_loader->init_feature();
1685
-	}
1686
-
1687
-	/**
1688
-	 * Define the locale for this plugin for internationalization.
1689
-	 *
1690
-	 * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1691
-	 * with WordPress.
1692
-	 *
1693
-	 * @since    1.0.0
1694
-	 * @access   private
1695
-	 */
1696
-	private function set_locale() {
1697
-
1698
-		$plugin_i18n = new Wordlift_i18n();
1699
-		$plugin_i18n->set_domain( $this->get_plugin_name() );
1700
-
1701
-		$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1702
-
1703
-	}
1704
-
1705
-	/**
1706
-	 * Register all of the hooks related to the admin area functionality
1707
-	 * of the plugin.
1708
-	 *
1709
-	 * @since    1.0.0
1710
-	 * @access   private
1711
-	 */
1712
-	private function define_admin_hooks() {
1713
-		$that         = $this;
1714
-		$plugin_admin = new Wordlift_Admin(
1715
-			$this->get_plugin_name(),
1716
-			$this->get_version(),
1717
-			$this->configuration_service,
1718
-			$this->notice_service,
1719
-			$this->user_service
1720
-		);
1721
-
1722
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1723
-		$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1724
-
1725
-		// Hook the init action to taxonomy services.
1726
-		$this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1727
-		$this->loader->add_action( 'init', $this->entity_types_taxonomy_service, 'init', 0 );
1728
-
1729
-		// Hook the deleted_post_meta action to the Thumbnail service.
1730
-		$this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1731
-
1732
-		// Hook the added_post_meta action to the Thumbnail service.
1733
-		$this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1734
-
1735
-		// Hook the updated_post_meta action to the Thumbnail service.
1736
-		$this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1737
-
1738
-		// Hook the AJAX wl_timeline action to the Timeline service.
1739
-		$this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1740
-
1741
-		// Register custom allowed redirect hosts.
1742
-		$this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1743
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1744
-		$this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1745
-
1746
-		/*
1545
+        $entity_helper = new Entity_Helper( $this->entity_uri_service, $this->entity_service );
1546
+        /**
1547
+         * @since 3.32.0
1548
+         * Initialize a local entity provider which acts as an abstraction layer
1549
+         * between the different types of objects in wordpress.
1550
+         */
1551
+        $entity_provider_registry = new Entity_Provider_Registry();
1552
+
1553
+        /**
1554
+         * @since 3.32.0
1555
+         * The post entity provider has the legacy code which provides the entity
1556
+         * if the object is post {@link \Wordlift\Object_Type_Enum::POST}
1557
+         */
1558
+        new Post_Entity_Provider( $this->entity_uri_service,
1559
+            $this->entity_type_service, $this->storage_factory->post_images() );
1560
+        /**
1561
+         * @since 3.32.0
1562
+         * The term entity provider provides the entity
1563
+         * if the object is term {@link \Wordlift\Object_Type_Enum::POST}
1564
+         */
1565
+        new Term_Entity_Provider();
1566
+
1567
+        new Analysis_Response_Ops_Factory(
1568
+            $this->entity_uri_service,
1569
+            $entity_helper,
1570
+            $entity_provider_registry
1571
+        );
1572
+
1573
+        /** WL Autocomplete. */
1574
+        $autocomplete_service       = new All_Autocomplete_Service( array(
1575
+            new Local_Autocomplete_Service(),
1576
+            new Linked_Data_Autocomplete_Service( $this->configuration_service, $entity_helper, $this->entity_uri_service, $this->entity_service ),
1577
+        ) );
1578
+        $this->autocomplete_adapter = new Wordlift_Autocomplete_Adapter( $autocomplete_service );
1579
+
1580
+        /**
1581
+         * @since 3.27.2
1582
+         * Integrate the recipe maker jsonld & set recipe
1583
+         * as default entity type to the wprm_recipe CPT.
1584
+         */
1585
+        new Recipe_Maker_Post_Type_Hook();
1586
+        $recipe_maker_validation_service = new Recipe_Maker_Validation_Service();
1587
+        new Recipe_Maker_Jsonld_Hook( $attachment_service, $recipe_maker_validation_service );
1588
+        new Recipe_Maker_After_Get_Jsonld_Hook( $recipe_maker_validation_service );
1589
+        new Recipe_Maker_Warning( $recipe_maker_validation_service );
1590
+        new Yoast_Jsonld( $recipe_maker_validation_service );
1591
+
1592
+        /**
1593
+         * @since 3.27.4
1594
+         * Add the faq duplicate markup hook.
1595
+         */
1596
+        new Faq_Duplicate_Markup_Remover();
1597
+        /**
1598
+         * @since 3.33.1
1599
+         * Remove the duplicate HowTo Markup.
1600
+         */
1601
+        new How_To_Duplicate_Markup_Remover();
1602
+
1603
+        /**
1604
+         * @since 3.27.8
1605
+         * @see https://github.com/insideout10/wordlift-plugin/issues/1248
1606
+         */
1607
+        new Key_Validation_Notice( $this->key_validation_service, $this->configuration_service );
1608
+        /**
1609
+         * @since 3.28.0
1610
+         * @see https://github.com/insideout10/wordlift-plugin/issues?q=assignee%3Anaveen17797+is%3Aopen
1611
+         */
1612
+        new Entity_No_Index_Flag();
1613
+
1614
+        /**
1615
+         * @since 3.29.0
1616
+         * @see https://github.com/insideout10/wordlift-plugin/issues/1304
1617
+         */
1618
+        new Entity_Rest_Service( $this->entity_type_service );
1619
+
1620
+        /**
1621
+         * Expand author in to references.
1622
+         * @since 3.30.0
1623
+         * @see https://github.com/insideout10/wordlift-plugin/issues/1318
1624
+         */
1625
+
1626
+        add_action( 'plugins_loaded', function () use ( $that ) {
1627
+
1628
+            if ( apply_filters( 'wl_feature__enable__article-wrapper', false ) ) {
1629
+                new Jsonld_Article_Wrapper( Wordlift_Post_To_Jsonld_Converter::get_instance(), $that->cached_postid_to_jsonld_converter );
1630
+            }
1631
+
1632
+            if ( apply_filters( 'wl_feature__enable__match-terms', false ) ) {
1633
+                $vocabulary_loader = new Vocabulary_Loader();
1634
+                $vocabulary_loader->init_vocabulary();
1635
+            }
1636
+
1637
+        } );
1638
+
1639
+        /**
1640
+         * @since 3.30.0
1641
+         * Add a checkbox to user option screen for wordlift admin.
1642
+         */
1643
+        $wordlift_admin_checkbox = new Admin_User_Option();
1644
+        $wordlift_admin_checkbox->connect_hook();
1645
+
1646
+        /**
1647
+         *Added for feature request 1496 (Webhooks)
1648
+         */
1649
+        $webhook_loader = new Webhooks_Loader();
1650
+        $webhook_loader->init_all_dependencies();
1651
+
1652
+        /**
1653
+         * @since 3.31.0
1654
+         * Init loader class for videoobject.
1655
+         */
1656
+        $videoobject_loader = new Loader();
1657
+        $videoobject_loader->init_feature();
1658
+        /**
1659
+         * @since 3.31.5
1660
+         * Create configuration endpoint for webapp to configure.
1661
+         */
1662
+        new Config( $this->admin_setup, $this->key_validation_service, $this->configuration_service );
1663
+        /**
1664
+         * @since 3.31.7
1665
+         * Remove duplicate videoobject.
1666
+         */
1667
+        new Videoobject_Duplicate_Remover();
1668
+        $synonym_loader = new \Wordlift\Synonym\Loader();
1669
+        $synonym_loader->init_feature();
1670
+        /**
1671
+         * @since 3.32.0
1672
+         * Create loader for vocabulary terms.
1673
+         */
1674
+        $vocabulary_terms_loader = new Vocabulary_Terms_Loader( $this->entity_type_service, $property_getter );
1675
+        $vocabulary_terms_loader->init_feature();
1676
+
1677
+        new Entity_Type_Change_Handler(
1678
+            $this->entity_service,
1679
+            $this->entity_type_service
1680
+        );
1681
+
1682
+        new Entity_Type_Setter();
1683
+        $no_editor_analysis_loader = new \Wordlift\No_Editor_Analysis\Loader();
1684
+        $no_editor_analysis_loader->init_feature();
1685
+    }
1686
+
1687
+    /**
1688
+     * Define the locale for this plugin for internationalization.
1689
+     *
1690
+     * Uses the Wordlift_i18n class in order to set the domain and to register the hook
1691
+     * with WordPress.
1692
+     *
1693
+     * @since    1.0.0
1694
+     * @access   private
1695
+     */
1696
+    private function set_locale() {
1697
+
1698
+        $plugin_i18n = new Wordlift_i18n();
1699
+        $plugin_i18n->set_domain( $this->get_plugin_name() );
1700
+
1701
+        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
1702
+
1703
+    }
1704
+
1705
+    /**
1706
+     * Register all of the hooks related to the admin area functionality
1707
+     * of the plugin.
1708
+     *
1709
+     * @since    1.0.0
1710
+     * @access   private
1711
+     */
1712
+    private function define_admin_hooks() {
1713
+        $that         = $this;
1714
+        $plugin_admin = new Wordlift_Admin(
1715
+            $this->get_plugin_name(),
1716
+            $this->get_version(),
1717
+            $this->configuration_service,
1718
+            $this->notice_service,
1719
+            $this->user_service
1720
+        );
1721
+
1722
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
1723
+        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts', 11 );
1724
+
1725
+        // Hook the init action to taxonomy services.
1726
+        $this->loader->add_action( 'init', $this->topic_taxonomy_service, 'init', 0 );
1727
+        $this->loader->add_action( 'init', $this->entity_types_taxonomy_service, 'init', 0 );
1728
+
1729
+        // Hook the deleted_post_meta action to the Thumbnail service.
1730
+        $this->loader->add_action( 'deleted_post_meta', $this->thumbnail_service, 'deleted_post_meta', 10, 4 );
1731
+
1732
+        // Hook the added_post_meta action to the Thumbnail service.
1733
+        $this->loader->add_action( 'added_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1734
+
1735
+        // Hook the updated_post_meta action to the Thumbnail service.
1736
+        $this->loader->add_action( 'updated_post_meta', $this->thumbnail_service, 'added_or_updated_post_meta', 10, 4 );
1737
+
1738
+        // Hook the AJAX wl_timeline action to the Timeline service.
1739
+        $this->loader->add_action( 'wp_ajax_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1740
+
1741
+        // Register custom allowed redirect hosts.
1742
+        $this->loader->add_filter( 'allowed_redirect_hosts', $this->redirect_service, 'allowed_redirect_hosts' );
1743
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1744
+        $this->loader->add_action( 'wp_ajax_wordlift_redirect', $this->redirect_service, 'ajax_redirect' );
1745
+
1746
+        /*
1747 1747
 		 * The old dashboard is replaced with dashboard v2.
1748 1748
 		 *
1749 1749
 		 * The old dashboard service is still loaded because its functions are used.
@@ -1752,391 +1752,391 @@  discard block
 block discarded – undo
1752 1752
 		 *
1753 1753
 		 * @since 3.20.0
1754 1754
 		 */
1755
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1756
-		// $this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1757
-		// Hook the AJAX wordlift_redirect action to the Redirect service.
1758
-		// $this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1759
-
1760
-		// Hook save_post to the entity service to update custom fields (such as alternate labels).
1761
-		// We have a priority of 9 because we want to be executed before data is sent to Redlink.
1762
-		$this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1763
-		$this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1764
-
1765
-		$this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1766
-		$this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1767
-
1768
-		// Entity listing customization (wp-admin/edit.php)
1769
-		// Add custom columns.
1770
-		$this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1771
-		// no explicit entity as it prevents handling of other post types.
1772
-		$this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1773
-		// Add 4W selection.
1774
-		$this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1775
-		$this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1776
-		$this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1777
-		$this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1778
-
1779
-		/*
1755
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1756
+        // $this->loader->add_action( 'wp_ajax_wordlift_get_stats', $this->dashboard_service, 'ajax_get_stats' );
1757
+        // Hook the AJAX wordlift_redirect action to the Redirect service.
1758
+        // $this->loader->add_action( 'wp_dashboard_setup', $this->dashboard_service, 'add_dashboard_widgets' );
1759
+
1760
+        // Hook save_post to the entity service to update custom fields (such as alternate labels).
1761
+        // We have a priority of 9 because we want to be executed before data is sent to Redlink.
1762
+        $this->loader->add_action( 'save_post', $this->entity_service, 'save_post', 9, 3 );
1763
+        $this->loader->add_action( 'save_post', $this->rating_service, 'set_rating_for', 20, 1 );
1764
+
1765
+        $this->loader->add_action( 'edit_form_before_permalink', $this->entity_service, 'edit_form_before_permalink', 10, 1 );
1766
+        $this->loader->add_action( 'in_admin_header', $this->rating_service, 'in_admin_header' );
1767
+
1768
+        // Entity listing customization (wp-admin/edit.php)
1769
+        // Add custom columns.
1770
+        $this->loader->add_filter( 'manage_entity_posts_columns', $this->entity_list_service, 'register_custom_columns' );
1771
+        // no explicit entity as it prevents handling of other post types.
1772
+        $this->loader->add_filter( 'manage_posts_custom_column', $this->entity_list_service, 'render_custom_columns', 10, 2 );
1773
+        // Add 4W selection.
1774
+        $this->loader->add_action( 'restrict_manage_posts', $this->entity_list_service, 'restrict_manage_posts_classification_scope' );
1775
+        $this->loader->add_filter( 'posts_clauses', $this->entity_list_service, 'posts_clauses_classification_scope' );
1776
+        $this->loader->add_action( 'pre_get_posts', $this->entity_list_service, 'pre_get_posts' );
1777
+        $this->loader->add_action( 'load-edit.php', $this->entity_list_service, 'load_edit' );
1778
+
1779
+        /*
1780 1780
 		 * If `All Entity Types` is disable, use the radio button Walker.
1781 1781
 		 *
1782 1782
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/835
1783 1783
 		 */
1784
-		if ( ! WL_ALL_ENTITY_TYPES ) {
1785
-			$this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1786
-		}
1787
-
1788
-		// Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1789
-		// entities.
1790
-		$this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1791
-
1792
-		// Filter imported post meta.
1793
-		$this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1794
-
1795
-		// Notify the import service when an import starts and ends.
1796
-		$this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1797
-		$this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1798
-
1799
-		// Hook the AJAX wl_rebuild action to the Rebuild Service.
1800
-		$this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1801
-		$this->loader->add_action( 'wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild' );
1802
-
1803
-		/**
1804
-		 * Filter: wl_feature__enable__settings-download.
1805
-		 *
1806
-		 * @param bool whether the screens needed to be registered, defaults to true.
1807
-		 *
1808
-		 * @return bool
1809
-		 * @since 3.27.6
1810
-		 */
1811
-		$this->features_registry->register_feature_from_slug( 'settings-download', true, array(
1812
-			$this,
1813
-			'register_screens'
1814
-		) );
1815
-
1816
-
1817
-		// Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1818
-		$this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1819
-
1820
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1821
-		$this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1822
-		$this->loader->add_action( 'admin_post_wl_jsonld', $this->jsonld_service, 'get' );
1823
-		$this->loader->add_action( 'admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1824
-
1825
-		// Hook the AJAX wl_validate_key action to the Key Validation service.
1826
-		$this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1827
-
1828
-		// Hook the AJAX wl_update_country_options action to the countries.
1829
-		$this->loader->add_action( 'wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html' );
1830
-
1831
-		// Hook the `admin_init` function to the Admin Setup.
1832
-		$this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1833
-
1834
-		// Hook the admin_init to the settings page.
1835
-		$this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1836
-		$this->loader->add_action( 'admin_init', $this->analytics_settings_page, 'admin_init' );
1837
-
1838
-		$this->loader->add_filter( 'admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction' );
1839
-
1840
-		// Hook the menu creation on the general wordlift menu creation.
1841
-		/**
1842
-		 * Filter: wl_feature__enable__screens.
1843
-		 *
1844
-		 * @param bool whether the screens needed to be registered, defaults to true.
1845
-		 *
1846
-		 * @return bool
1847
-		 * @since 3.27.6
1848
-		 *
1849
-		 * Since 3.30.0 this feature is registered using registry.
1850
-		 */
1851
-		add_action( 'plugins_loaded', function () use ( $that ) {
1852
-			if ( apply_filters( 'wl_feature__enable__settings-screen', true ) || Admin_User_Option::is_wordlift_admin() ) {
1853
-				add_action( 'wl_admin_menu', array( $that->settings_page, 'admin_menu' ), 10, 2 );
1854
-			}
1855
-		} );
1856
-
1857
-		// Hook key update.
1858
-		$this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1859
-		$this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1860
-
1861
-		// Add additional action links to the WordLift plugin in the plugins page.
1862
-		$this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1863
-
1864
-		/*
1784
+        if ( ! WL_ALL_ENTITY_TYPES ) {
1785
+            $this->loader->add_filter( 'wp_terms_checklist_args', $this->entity_types_taxonomy_walker, 'terms_checklist_args' );
1786
+        }
1787
+
1788
+        // Hook the PrimaShop adapter to <em>prima_metabox_entity_header_args</em> in order to add header support for
1789
+        // entities.
1790
+        $this->loader->add_filter( 'prima_metabox_entity_header_args', $this->primashop_adapter, 'prima_metabox_entity_header_args', 10, 2 );
1791
+
1792
+        // Filter imported post meta.
1793
+        $this->loader->add_filter( 'wp_import_post_meta', $this->import_service, 'wp_import_post_meta', 10, 3 );
1794
+
1795
+        // Notify the import service when an import starts and ends.
1796
+        $this->loader->add_action( 'import_start', $this->import_service, 'import_start', 10, 0 );
1797
+        $this->loader->add_action( 'import_end', $this->import_service, 'import_end', 10, 0 );
1798
+
1799
+        // Hook the AJAX wl_rebuild action to the Rebuild Service.
1800
+        $this->loader->add_action( 'wp_ajax_wl_rebuild', $this->rebuild_service, 'rebuild' );
1801
+        $this->loader->add_action( 'wp_ajax_wl_rebuild_references', $this->reference_rebuild_service, 'rebuild' );
1802
+
1803
+        /**
1804
+         * Filter: wl_feature__enable__settings-download.
1805
+         *
1806
+         * @param bool whether the screens needed to be registered, defaults to true.
1807
+         *
1808
+         * @return bool
1809
+         * @since 3.27.6
1810
+         */
1811
+        $this->features_registry->register_feature_from_slug( 'settings-download', true, array(
1812
+            $this,
1813
+            'register_screens'
1814
+        ) );
1815
+
1816
+
1817
+        // Hook the admin-ajax.php?action=wl_download_your_data&out=xyz links.
1818
+        $this->loader->add_action( 'wp_ajax_wl_download_your_data', $this->download_your_data_page, 'download_your_data', 10 );
1819
+
1820
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1821
+        $this->loader->add_action( 'wp_ajax_wl_jsonld', $this->jsonld_service, 'get' );
1822
+        $this->loader->add_action( 'admin_post_wl_jsonld', $this->jsonld_service, 'get' );
1823
+        $this->loader->add_action( 'admin_post_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1824
+
1825
+        // Hook the AJAX wl_validate_key action to the Key Validation service.
1826
+        $this->loader->add_action( 'wp_ajax_wl_validate_key', $this->key_validation_service, 'validate_key' );
1827
+
1828
+        // Hook the AJAX wl_update_country_options action to the countries.
1829
+        $this->loader->add_action( 'wp_ajax_wl_update_country_options', $this->country_select_element, 'get_options_html' );
1830
+
1831
+        // Hook the `admin_init` function to the Admin Setup.
1832
+        $this->loader->add_action( 'admin_init', $this->admin_setup, 'admin_init' );
1833
+
1834
+        // Hook the admin_init to the settings page.
1835
+        $this->loader->add_action( 'admin_init', $this->settings_page, 'admin_init' );
1836
+        $this->loader->add_action( 'admin_init', $this->analytics_settings_page, 'admin_init' );
1837
+
1838
+        $this->loader->add_filter( 'admin_post_thumbnail_html', $this->publisher_service, 'add_featured_image_instruction' );
1839
+
1840
+        // Hook the menu creation on the general wordlift menu creation.
1841
+        /**
1842
+         * Filter: wl_feature__enable__screens.
1843
+         *
1844
+         * @param bool whether the screens needed to be registered, defaults to true.
1845
+         *
1846
+         * @return bool
1847
+         * @since 3.27.6
1848
+         *
1849
+         * Since 3.30.0 this feature is registered using registry.
1850
+         */
1851
+        add_action( 'plugins_loaded', function () use ( $that ) {
1852
+            if ( apply_filters( 'wl_feature__enable__settings-screen', true ) || Admin_User_Option::is_wordlift_admin() ) {
1853
+                add_action( 'wl_admin_menu', array( $that->settings_page, 'admin_menu' ), 10, 2 );
1854
+            }
1855
+        } );
1856
+
1857
+        // Hook key update.
1858
+        $this->loader->add_action( 'pre_update_option_wl_general_settings', $this->configuration_service, 'maybe_update_dataset_uri', 10, 2 );
1859
+        $this->loader->add_action( 'update_option_wl_general_settings', $this->configuration_service, 'update_key', 10, 2 );
1860
+
1861
+        // Add additional action links to the WordLift plugin in the plugins page.
1862
+        $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->settings_page_action_link, 'action_links', 10, 1 );
1863
+
1864
+        /*
1865 1865
 		 * Remove the Analytics Settings link from the plugin page.
1866 1866
 		 *
1867 1867
 		 * @see https://github.com/insideout10/wordlift-plugin/issues/932
1868 1868
 		 * @since 3.21.1
1869 1869
 		 */
1870
-		// $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->analytics_settings_page_action_link, 'action_links', 10, 1 );
1871
-
1872
-		// Hook the AJAX `wl_publisher` action name.
1873
-		$this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1874
-
1875
-		// Hook row actions for the entity type list admin.
1876
-		$this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1877
-
1878
-		/** Ajax actions. */
1879
-		$this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1880
-
1881
-		// Hook capabilities manipulation to allow access to entity type admin
1882
-		// page  on WordPress versions before 4.7.
1883
-		global $wp_version;
1884
-		if ( version_compare( $wp_version, '4.7', '<' ) ) {
1885
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1886
-		}
1887
-
1888
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1889
-
1890
-		/** Adapters. */
1891
-		$this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1892
-		/**
1893
-		 * Disabling Faq temporarily.
1894
-		 * Load the tinymce editor button on the tool bar.
1895
-		 * @since 3.26.0
1896
-		 */
1897
-		//$this->loader->add_filter( 'tiny_mce_before_init', $this->faq_tinymce_adapter, 'register_custom_tags' );
1898
-		//$this->loader->add_filter( 'mce_buttons', $this->faq_tinymce_adapter, 'register_faq_toolbar_button', 10, 1 );
1899
-		//$this->loader->add_filter( 'mce_external_plugins', $this->faq_tinymce_adapter, 'register_faq_tinymce_plugin', 10, 1 );
1900
-
1901
-
1902
-		$this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1903
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1904
-		$this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1905
-		/**
1906
-		 * @since 3.26.0
1907
-		 */
1908
-		$excerpt_adapter = new Post_Excerpt_Meta_Box_Adapter();
1909
-		$this->loader->add_action( 'do_meta_boxes', $excerpt_adapter, 'replace_post_excerpt_meta_box' );
1910
-		// Adding Rest route for the post excerpt
1911
-		Post_Excerpt_Rest_Controller::register_routes();
1912
-
1913
-		$this->loader->add_action( 'update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5 );
1914
-		$this->loader->add_action( 'delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5 );
1915
-
1916
-		// Handle the autocomplete request.
1917
-		add_action( 'wp_ajax_wl_autocomplete', array(
1918
-			$this->autocomplete_adapter,
1919
-			'wl_autocomplete',
1920
-		) );
1921
-		add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1922
-			$this->autocomplete_adapter,
1923
-			'wl_autocomplete',
1924
-		) );
1925
-
1926
-		// Hooks to restrict multisite super admin from manipulating entity types.
1927
-		if ( is_multisite() ) {
1928
-			$this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1929
-		}
1930
-
1931
-		$deactivator_feedback = new Wordlift_Deactivator_Feedback( $this->configuration_service );
1932
-
1933
-		add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1934
-		add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1935
-		add_action( 'wp_ajax_wl_deactivation_feedback', array( $deactivator_feedback, 'wl_deactivation_feedback' ) );
1936
-
1937
-		/**
1938
-		 * Always allow the `wordlift/classification` block.
1939
-		 *
1940
-		 * @since 3.23.0
1941
-		 */
1942
-		add_filter( 'allowed_block_types', function ( $value ) {
1943
-
1944
-			if ( true === $value ) {
1945
-				return $value;
1946
-			}
1947
-
1948
-			return array_merge( (array) $value, array( 'wordlift/classification' ) );
1949
-		}, PHP_INT_MAX );
1950
-
1951
-		/**
1952
-		 * @since 3.27.7
1953
-		 * @see https://github.com/insideout10/wordlift-plugin/issues/1214
1954
-		 */
1955
-		new Top_Entities();
1956
-	}
1957
-
1958
-	/**
1959
-	 * Register all of the hooks related to the public-facing functionality
1960
-	 * of the plugin.
1961
-	 *
1962
-	 * @since    1.0.0
1963
-	 * @access   private
1964
-	 */
1965
-	private function define_public_hooks() {
1966
-
1967
-		$plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1968
-
1969
-		// Register the entity post type.
1970
-		$this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1971
-
1972
-		// Bind the link generation and handling hooks to the entity link service.
1973
-		$this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1974
-		$this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1975
-		// $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 );
1976
-		// $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 );
1977
-
1978
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1979
-		$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1980
-		$this->loader->add_action( 'wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts' );
1981
-
1982
-		// Registering Faq_Content_Filter service used for removing faq question and answer tags from the html.
1983
-		$this->loader->add_filter( 'the_content', $this->faq_content_filter_service, 'remove_all_faq_question_and_answer_tags' );
1984
-		// Hook the content filter service to add entity links.
1985
-		if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1986
-			$this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1987
-		}
1988
-
1989
-		// Hook the AJAX wl_timeline action to the Timeline service.
1990
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1991
-
1992
-		// Hook the ShareThis service.
1993
-		$this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1994
-		$this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1995
-
1996
-		// Hook the AJAX wl_jsonld action to the JSON-LD service.
1997
-		$this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1998
-
1999
-		// Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
2000
-		// in order to tweak WP's `WP_Query` to include entities in queries related
2001
-		// to categories.
2002
-		$this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
2003
-
2004
-		/*
1870
+        // $this->loader->add_filter( 'plugin_action_links_wordlift/wordlift.php', $this->analytics_settings_page_action_link, 'action_links', 10, 1 );
1871
+
1872
+        // Hook the AJAX `wl_publisher` action name.
1873
+        $this->loader->add_action( 'wp_ajax_wl_publisher', $this->publisher_ajax_adapter, 'publisher' );
1874
+
1875
+        // Hook row actions for the entity type list admin.
1876
+        $this->loader->add_filter( 'wl_entity_type_row_actions', $this->entity_type_admin_page, 'wl_entity_type_row_actions', 10, 2 );
1877
+
1878
+        /** Ajax actions. */
1879
+        $this->loader->add_action( 'wp_ajax_wl_google_analytics_export', $this->google_analytics_export_service, 'export' );
1880
+
1881
+        // Hook capabilities manipulation to allow access to entity type admin
1882
+        // page  on WordPress versions before 4.7.
1883
+        global $wp_version;
1884
+        if ( version_compare( $wp_version, '4.7', '<' ) ) {
1885
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'enable_admin_access_pre_47', 10, 4 );
1886
+        }
1887
+
1888
+        $this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
1889
+
1890
+        /** Adapters. */
1891
+        $this->loader->add_filter( 'mce_external_plugins', $this->tinymce_adapter, 'mce_external_plugins', 10, 1 );
1892
+        /**
1893
+         * Disabling Faq temporarily.
1894
+         * Load the tinymce editor button on the tool bar.
1895
+         * @since 3.26.0
1896
+         */
1897
+        //$this->loader->add_filter( 'tiny_mce_before_init', $this->faq_tinymce_adapter, 'register_custom_tags' );
1898
+        //$this->loader->add_filter( 'mce_buttons', $this->faq_tinymce_adapter, 'register_faq_toolbar_button', 10, 1 );
1899
+        //$this->loader->add_filter( 'mce_external_plugins', $this->faq_tinymce_adapter, 'register_faq_tinymce_plugin', 10, 1 );
1900
+
1901
+
1902
+        $this->loader->add_action( 'wp_ajax_wl_relation_rebuild_process_all', $this->relation_rebuild_adapter, 'process_all' );
1903
+        $this->loader->add_action( 'wp_ajax_wl_sample_data_create', $this->sample_data_ajax_adapter, 'create' );
1904
+        $this->loader->add_action( 'wp_ajax_wl_sample_data_delete', $this->sample_data_ajax_adapter, 'delete' );
1905
+        /**
1906
+         * @since 3.26.0
1907
+         */
1908
+        $excerpt_adapter = new Post_Excerpt_Meta_Box_Adapter();
1909
+        $this->loader->add_action( 'do_meta_boxes', $excerpt_adapter, 'replace_post_excerpt_meta_box' );
1910
+        // Adding Rest route for the post excerpt
1911
+        Post_Excerpt_Rest_Controller::register_routes();
1912
+
1913
+        $this->loader->add_action( 'update_user_metadata', $this->user_service, 'update_user_metadata', 10, 5 );
1914
+        $this->loader->add_action( 'delete_user_metadata', $this->user_service, 'delete_user_metadata', 10, 5 );
1915
+
1916
+        // Handle the autocomplete request.
1917
+        add_action( 'wp_ajax_wl_autocomplete', array(
1918
+            $this->autocomplete_adapter,
1919
+            'wl_autocomplete',
1920
+        ) );
1921
+        add_action( 'wp_ajax_nopriv_wl_autocomplete', array(
1922
+            $this->autocomplete_adapter,
1923
+            'wl_autocomplete',
1924
+        ) );
1925
+
1926
+        // Hooks to restrict multisite super admin from manipulating entity types.
1927
+        if ( is_multisite() ) {
1928
+            $this->loader->add_filter( 'map_meta_cap', $this->entity_type_admin_page, 'restrict_super_admin', 10, 4 );
1929
+        }
1930
+
1931
+        $deactivator_feedback = new Wordlift_Deactivator_Feedback( $this->configuration_service );
1932
+
1933
+        add_action( 'admin_footer', array( $deactivator_feedback, 'render_feedback_popup' ) );
1934
+        add_action( 'admin_enqueue_scripts', array( $deactivator_feedback, 'enqueue_popup_scripts' ) );
1935
+        add_action( 'wp_ajax_wl_deactivation_feedback', array( $deactivator_feedback, 'wl_deactivation_feedback' ) );
1936
+
1937
+        /**
1938
+         * Always allow the `wordlift/classification` block.
1939
+         *
1940
+         * @since 3.23.0
1941
+         */
1942
+        add_filter( 'allowed_block_types', function ( $value ) {
1943
+
1944
+            if ( true === $value ) {
1945
+                return $value;
1946
+            }
1947
+
1948
+            return array_merge( (array) $value, array( 'wordlift/classification' ) );
1949
+        }, PHP_INT_MAX );
1950
+
1951
+        /**
1952
+         * @since 3.27.7
1953
+         * @see https://github.com/insideout10/wordlift-plugin/issues/1214
1954
+         */
1955
+        new Top_Entities();
1956
+    }
1957
+
1958
+    /**
1959
+     * Register all of the hooks related to the public-facing functionality
1960
+     * of the plugin.
1961
+     *
1962
+     * @since    1.0.0
1963
+     * @access   private
1964
+     */
1965
+    private function define_public_hooks() {
1966
+
1967
+        $plugin_public = new Wordlift_Public( $this->get_plugin_name(), $this->get_version() );
1968
+
1969
+        // Register the entity post type.
1970
+        $this->loader->add_action( 'init', $this->entity_post_type_service, 'register' );
1971
+
1972
+        // Bind the link generation and handling hooks to the entity link service.
1973
+        $this->loader->add_filter( 'post_type_link', $this->entity_link_service, 'post_type_link', 10, 4 );
1974
+        $this->loader->add_action( 'pre_get_posts', $this->entity_link_service, 'pre_get_posts', PHP_INT_MAX, 1 );
1975
+        // $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 );
1976
+        // $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 );
1977
+
1978
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
1979
+        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
1980
+        $this->loader->add_action( 'wp_enqueue_scripts', $this->context_cards_service, 'enqueue_scripts' );
1981
+
1982
+        // Registering Faq_Content_Filter service used for removing faq question and answer tags from the html.
1983
+        $this->loader->add_filter( 'the_content', $this->faq_content_filter_service, 'remove_all_faq_question_and_answer_tags' );
1984
+        // Hook the content filter service to add entity links.
1985
+        if ( ! defined( 'WL_DISABLE_CONTENT_FILTER' ) || ! WL_DISABLE_CONTENT_FILTER ) {
1986
+            $this->loader->add_filter( 'the_content', $this->content_filter_service, 'the_content' );
1987
+        }
1988
+
1989
+        // Hook the AJAX wl_timeline action to the Timeline service.
1990
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_timeline', $this->timeline_service, 'ajax_timeline' );
1991
+
1992
+        // Hook the ShareThis service.
1993
+        $this->loader->add_filter( 'the_content', $this->sharethis_service, 'the_content', 99 );
1994
+        $this->loader->add_filter( 'the_excerpt', $this->sharethis_service, 'the_excerpt', 99 );
1995
+
1996
+        // Hook the AJAX wl_jsonld action to the JSON-LD service.
1997
+        $this->loader->add_action( 'wp_ajax_nopriv_wl_jsonld', $this->jsonld_service, 'get' );
1998
+
1999
+        // Hook the `pre_get_posts` action to the `Wordlift_Category_Taxonomy_Service`
2000
+        // in order to tweak WP's `WP_Query` to include entities in queries related
2001
+        // to categories.
2002
+        $this->loader->add_action( 'pre_get_posts', $this->category_taxonomy_service, 'pre_get_posts', 10, 1 );
2003
+
2004
+        /*
2005 2005
 		 * Hook the `pre_get_posts` action to the `Wordlift_Entity_Page_Service`
2006 2006
 		 * in order to tweak WP's `WP_Query` to show event related entities in reverse
2007 2007
 		 * order of start time.
2008 2008
 		 */
2009
-		$this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
2010
-
2011
-		$this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
2012
-
2013
-		// This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
2014
-		$this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
2015
-
2016
-		// Analytics Script Frontend.
2017
-		if ( apply_filters( 'wl_feature__enable__analytics', true ) && $this->configuration_service->is_analytics_enable() ) {
2018
-			$this->loader->add_action( 'wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10 );
2019
-		}
2020
-
2021
-	}
2022
-
2023
-	/**
2024
-	 * Run the loader to execute all of the hooks with WordPress.
2025
-	 *
2026
-	 * @since    1.0.0
2027
-	 */
2028
-	public function run() {
2029
-		$this->loader->run();
2030
-	}
2031
-
2032
-	/**
2033
-	 * The name of the plugin used to uniquely identify it within the context of
2034
-	 * WordPress and to define internationalization functionality.
2035
-	 *
2036
-	 * @return    string    The name of the plugin.
2037
-	 * @since     1.0.0
2038
-	 */
2039
-	public function get_plugin_name() {
2040
-		return $this->plugin_name;
2041
-	}
2042
-
2043
-	/**
2044
-	 * The reference to the class that orchestrates the hooks with the plugin.
2045
-	 *
2046
-	 * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
2047
-	 * @since     1.0.0
2048
-	 */
2049
-	public function get_loader() {
2050
-		return $this->loader;
2051
-	}
2052
-
2053
-	/**
2054
-	 * Retrieve the version number of the plugin.
2055
-	 *
2056
-	 * @return    string    The version number of the plugin.
2057
-	 * @since     1.0.0
2058
-	 */
2059
-	public function get_version() {
2060
-		return $this->version;
2061
-	}
2062
-
2063
-	/**
2064
-	 * Load dependencies for WP-CLI.
2065
-	 *
2066
-	 * @throws Exception
2067
-	 * @since 3.18.0
2068
-	 */
2069
-	private function load_cli_dependencies() {
2070
-
2071
-		require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cli/class-wordlift-push-reference-data-command.php';
2072
-
2073
-		$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 );
2074
-
2075
-		WP_CLI::add_command( 'wl references push', $push_reference_data_command );
2076
-
2077
-	}
2078
-
2079
-	/**
2080
-	 * Get the {@link \Wordlift_Dashboard_Service} to allow others to use its functions.
2081
-	 *
2082
-	 * @return \Wordlift_Dashboard_Service The {@link \Wordlift_Dashboard_Service} instance.
2083
-	 * @since 3.20.0
2084
-	 */
2085
-	public function get_dashboard_service() {
2086
-
2087
-		return $this->dashboard_service;
2088
-	}
2089
-
2090
-	public function add_wl_enabled_blocks() {
2091
-		/**
2092
-		 * Filter: wl_feature__enable__blocks.
2093
-		 *
2094
-		 * @param bool whether the blocks needed to be registered, defaults to true.
2095
-		 *
2096
-		 * @return bool
2097
-		 * @since 3.27.6
2098
-		 */
2099
-
2100
-		wp_register_script( 'wl_enabled_blocks', false );
2101
-
2102
-		$enabled_blocks = array();
2103
-
2104
-		/**
2105
-		 * Filter name: wl_feature__enable__product-navigator
2106
-		 * @since 3.32.3
2107
-		 */
2108
-		if ( apply_filters( 'wl_feature__enable__product-navigator', true ) ) {
2109
-			$enabled_blocks[] = 'wordlift/products-navigator';
2110
-		}
2111
-
2112
-		if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
2113
-			// To intimate JS
2114
-			$enabled_blocks = array_merge( $enabled_blocks, array(
2115
-				'wordlift/navigator',
2116
-				'wordlift/chord',
2117
-				'wordlift/geomap',
2118
-				'wordlift/timeline',
2119
-				'wordlift/cloud',
2120
-				'wordlift/vocabulary',
2121
-				'wordlift/faceted-search'
2122
-			) );
2123
-		}
2124
-
2125
-		wp_localize_script( 'wl_enabled_blocks', 'wlEnabledBlocks', $enabled_blocks );
2126
-		wp_enqueue_script( 'wl_enabled_blocks' );
2127
-	}
2128
-
2129
-	/**
2130
-	 * Register screens based on the filter.
2131
-	 */
2132
-	public function register_screens() {
2133
-		// Hook the menu to the Download Your Data page.
2134
-		if ( apply_filters( 'wl_feature__enable__settings-download', true ) ) {
2135
-			add_action( 'admin_menu', array( $this->download_your_data_page, 'admin_menu' ), 100, 0 );
2136
-		}
2137
-		add_action( 'admin_menu', array( $this->status_page, 'admin_menu' ), 100, 0 );
2138
-		add_action( 'admin_menu', array( $this->entity_type_settings_admin_page, 'admin_menu' ), 100, 0 );
2139
-
2140
-	}
2009
+        $this->loader->add_action( 'pre_get_posts', $this->entity_page_service, 'pre_get_posts', 10, 1 );
2010
+
2011
+        $this->loader->add_action( 'wl_async_wl_run_sparql_query', $this->sparql_service, 'run_sparql_query', 10, 1 );
2012
+
2013
+        // This hook have to run before the rating service, as otherwise the post might not be a proper entity when rating is done.
2014
+        $this->loader->add_action( 'save_post', $this->entity_type_adapter, 'save_post', 9, 3 );
2015
+
2016
+        // Analytics Script Frontend.
2017
+        if ( apply_filters( 'wl_feature__enable__analytics', true ) && $this->configuration_service->is_analytics_enable() ) {
2018
+            $this->loader->add_action( 'wp_enqueue_scripts', $this->analytics_connect, 'enqueue_scripts', 10 );
2019
+        }
2020
+
2021
+    }
2022
+
2023
+    /**
2024
+     * Run the loader to execute all of the hooks with WordPress.
2025
+     *
2026
+     * @since    1.0.0
2027
+     */
2028
+    public function run() {
2029
+        $this->loader->run();
2030
+    }
2031
+
2032
+    /**
2033
+     * The name of the plugin used to uniquely identify it within the context of
2034
+     * WordPress and to define internationalization functionality.
2035
+     *
2036
+     * @return    string    The name of the plugin.
2037
+     * @since     1.0.0
2038
+     */
2039
+    public function get_plugin_name() {
2040
+        return $this->plugin_name;
2041
+    }
2042
+
2043
+    /**
2044
+     * The reference to the class that orchestrates the hooks with the plugin.
2045
+     *
2046
+     * @return    Wordlift_Loader    Orchestrates the hooks of the plugin.
2047
+     * @since     1.0.0
2048
+     */
2049
+    public function get_loader() {
2050
+        return $this->loader;
2051
+    }
2052
+
2053
+    /**
2054
+     * Retrieve the version number of the plugin.
2055
+     *
2056
+     * @return    string    The version number of the plugin.
2057
+     * @since     1.0.0
2058
+     */
2059
+    public function get_version() {
2060
+        return $this->version;
2061
+    }
2062
+
2063
+    /**
2064
+     * Load dependencies for WP-CLI.
2065
+     *
2066
+     * @throws Exception
2067
+     * @since 3.18.0
2068
+     */
2069
+    private function load_cli_dependencies() {
2070
+
2071
+        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'cli/class-wordlift-push-reference-data-command.php';
2072
+
2073
+        $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 );
2074
+
2075
+        WP_CLI::add_command( 'wl references push', $push_reference_data_command );
2076
+
2077
+    }
2078
+
2079
+    /**
2080
+     * Get the {@link \Wordlift_Dashboard_Service} to allow others to use its functions.
2081
+     *
2082
+     * @return \Wordlift_Dashboard_Service The {@link \Wordlift_Dashboard_Service} instance.
2083
+     * @since 3.20.0
2084
+     */
2085
+    public function get_dashboard_service() {
2086
+
2087
+        return $this->dashboard_service;
2088
+    }
2089
+
2090
+    public function add_wl_enabled_blocks() {
2091
+        /**
2092
+         * Filter: wl_feature__enable__blocks.
2093
+         *
2094
+         * @param bool whether the blocks needed to be registered, defaults to true.
2095
+         *
2096
+         * @return bool
2097
+         * @since 3.27.6
2098
+         */
2099
+
2100
+        wp_register_script( 'wl_enabled_blocks', false );
2101
+
2102
+        $enabled_blocks = array();
2103
+
2104
+        /**
2105
+         * Filter name: wl_feature__enable__product-navigator
2106
+         * @since 3.32.3
2107
+         */
2108
+        if ( apply_filters( 'wl_feature__enable__product-navigator', true ) ) {
2109
+            $enabled_blocks[] = 'wordlift/products-navigator';
2110
+        }
2111
+
2112
+        if ( apply_filters( 'wl_feature__enable__blocks', true ) ) {
2113
+            // To intimate JS
2114
+            $enabled_blocks = array_merge( $enabled_blocks, array(
2115
+                'wordlift/navigator',
2116
+                'wordlift/chord',
2117
+                'wordlift/geomap',
2118
+                'wordlift/timeline',
2119
+                'wordlift/cloud',
2120
+                'wordlift/vocabulary',
2121
+                'wordlift/faceted-search'
2122
+            ) );
2123
+        }
2124
+
2125
+        wp_localize_script( 'wl_enabled_blocks', 'wlEnabledBlocks', $enabled_blocks );
2126
+        wp_enqueue_script( 'wl_enabled_blocks' );
2127
+    }
2128
+
2129
+    /**
2130
+     * Register screens based on the filter.
2131
+     */
2132
+    public function register_screens() {
2133
+        // Hook the menu to the Download Your Data page.
2134
+        if ( apply_filters( 'wl_feature__enable__settings-download', true ) ) {
2135
+            add_action( 'admin_menu', array( $this->download_your_data_page, 'admin_menu' ), 100, 0 );
2136
+        }
2137
+        add_action( 'admin_menu', array( $this->status_page, 'admin_menu' ), 100, 0 );
2138
+        add_action( 'admin_menu', array( $this->entity_type_settings_admin_page, 'admin_menu' ), 100, 0 );
2139
+
2140
+    }
2141 2141
 
2142 2142
 }
Please login to merge, or discard this patch.
src/wordlift/webhooks/tabs/class-settings-tab.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,19 +8,19 @@
 block discarded – undo
8 8
 
9 9
 class Settings_Tab {
10 10
 
11
-	public function init() {
11
+    public function init() {
12 12
 
13
-		add_filter( 'wl_admin_page_tabs', function ( $tabs ) {
14
-			$tabs[] = array(
15
-				'slug'  => 'webhooksobject-settings',
16
-				'title' => __( 'Webhooks Settings', 'wordlift' )
17
-			);
18
-			return $tabs;
19
-		} );
13
+        add_filter( 'wl_admin_page_tabs', function ( $tabs ) {
14
+            $tabs[] = array(
15
+                'slug'  => 'webhooksobject-settings',
16
+                'title' => __( 'Webhooks Settings', 'wordlift' )
17
+            );
18
+            return $tabs;
19
+        } );
20 20
 
21
-		// Registering the option group during setup
21
+        // Registering the option group during setup
22 22
         add_action('admin_init', array( &$this, 'wl_admin_register_setting' ) );
23
-	}
23
+    }
24 24
 
25 25
     // Call back function to register the option group
26 26
     public function wl_admin_register_setting() {
Please login to merge, or discard this patch.
Spacing   +11 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,24 +10,24 @@  discard block
 block discarded – undo
10 10
 
11 11
 	public function init() {
12 12
 
13
-		add_filter( 'wl_admin_page_tabs', function ( $tabs ) {
13
+		add_filter('wl_admin_page_tabs', function($tabs) {
14 14
 			$tabs[] = array(
15 15
 				'slug'  => 'webhooksobject-settings',
16
-				'title' => __( 'Webhooks Settings', 'wordlift' )
16
+				'title' => __('Webhooks Settings', 'wordlift')
17 17
 			);
18 18
 			return $tabs;
19 19
 		} );
20 20
 
21 21
 		// Registering the option group during setup
22
-        add_action('admin_init', array( &$this, 'wl_admin_register_setting' ) );
22
+        add_action('admin_init', array(&$this, 'wl_admin_register_setting'));
23 23
 	}
24 24
 
25 25
     // Call back function to register the option group
26 26
     public function wl_admin_register_setting() {
27
-        add_option( 'wl_webhook_url', array(), '', false);
27
+        add_option('wl_webhook_url', array(), '', false);
28 28
         $args = array(
29 29
                 'type' => 'string',
30
-                'sanitize_callback' => array( $this, 'sanitize_callback' ),
30
+                'sanitize_callback' => array($this, 'sanitize_callback'),
31 31
                 'default' => NULL,
32 32
                 );
33 33
         register_setting(
@@ -39,19 +39,18 @@  discard block
 block discarded – undo
39 39
     // Callback function to process the data optioned from Webhook admin settings page
40 40
     function sanitize_callback($url) {
41 41
 
42
-        $url = filter_var( $url, FILTER_SANITIZE_URL );
42
+        $url = filter_var($url, FILTER_SANITIZE_URL);
43 43
 
44
-        if ( filter_var( $url, FILTER_VALIDATE_URL ) ) {
44
+        if (filter_var($url, FILTER_VALIDATE_URL)) {
45 45
 
46 46
             /* If wl_webhook_url doesn't contain an existing entry then form an array of the input
47 47
             * Else merge the input with the value stored in the mentioned option field
48 48
             */
49
-            $url = get_option( 'wl_webhook_url' ) ?
50
-                        array_merge( get_option( 'wl_webhook_url' ), array( $url ) ) :
51
-                        array( $url );
49
+            $url = get_option('wl_webhook_url') ?
50
+                        array_merge(get_option('wl_webhook_url'), array($url)) : array($url);
52 51
         } else {
53
-            add_settings_error( 'wl_webhook_error', esc_attr( 'settings_updated' ), __( 'Please enter a valid url', 'wordlift' ), 'error' );
54
-            $url = get_option( 'wl_webhook_url' );
52
+            add_settings_error('wl_webhook_error', esc_attr('settings_updated'), __('Please enter a valid url', 'wordlift'), 'error');
53
+            $url = get_option('wl_webhook_url');
55 54
         }
56 55
 
57 56
         return $url;
Please login to merge, or discard this patch.
src/install/class-wordlift-install-3-24-2.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -11,38 +11,38 @@
 block discarded – undo
11 11
 
12 12
 class Wordlift_Install_3_24_2 extends Wordlift_Install {
13 13
 
14
-	/**
15
-	 * {@inheritdoc}
16
-	 */
17
-	protected static $version = '3.24.2';
14
+    /**
15
+     * {@inheritdoc}
16
+     */
17
+    protected static $version = '3.24.2';
18 18
 
19
-	/**
20
-	 * @inheritDoc
21
-	 */
22
-	public function install() {
19
+    /**
20
+     * @inheritDoc
21
+     */
22
+    public function install() {
23 23
 
24
-		global $wpdb;
24
+        global $wpdb;
25 25
 
26
-		if ( false === get_option( 'wl_mappings' ) ) {
27
-			add_option( 'wl_mappings', array(), '', true );
28
-		}
26
+        if ( false === get_option( 'wl_mappings' ) ) {
27
+            add_option( 'wl_mappings', array(), '', true );
28
+        }
29 29
 
30
-		if ( false === get_option( 'wl_analytics_settings' ) ) {
31
-			add_option( 'wl_analytics_settings', false, '', true );
32
-		}
30
+        if ( false === get_option( 'wl_analytics_settings' ) ) {
31
+            add_option( 'wl_analytics_settings', false, '', true );
32
+        }
33 33
 
34
-		if ( false === get_option( 'wl_entity_type_settings' ) ) {
35
-			add_option( 'wl_entity_type_settings', array(), '', true );
36
-		}
34
+        if ( false === get_option( 'wl_entity_type_settings' ) ) {
35
+            add_option( 'wl_entity_type_settings', array(), '', true );
36
+        }
37 37
 
38
-		// Added for feature request 1496 (Webhooks)
39
-		if ( false === get_option( 'wl_webhooks_settings' ) ) {
40
-			add_option( 'wl_webhooks_settings', array(), '', false );
41
-		}
38
+        // Added for feature request 1496 (Webhooks)
39
+        if ( false === get_option( 'wl_webhooks_settings' ) ) {
40
+            add_option( 'wl_webhooks_settings', array(), '', false );
41
+        }
42 42
 
43
-		$wpdb->query( "UPDATE {$wpdb->options} SET autoload = 'no'"
44
-		              . " WHERE option_name IN ( 'wl_mappings', 'wl_analytics_settings', 'wl_entity_type_settings', 'wl_webhooks_settings', 'WPLANG' )" );
43
+        $wpdb->query( "UPDATE {$wpdb->options} SET autoload = 'no'"
44
+                        . " WHERE option_name IN ( 'wl_mappings', 'wl_analytics_settings', 'wl_entity_type_settings', 'wl_webhooks_settings', 'WPLANG' )" );
45 45
 
46
-	}
46
+    }
47 47
 
48 48
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,25 +23,25 @@
 block discarded – undo
23 23
 
24 24
 		global $wpdb;
25 25
 
26
-		if ( false === get_option( 'wl_mappings' ) ) {
27
-			add_option( 'wl_mappings', array(), '', true );
26
+		if (false === get_option('wl_mappings')) {
27
+			add_option('wl_mappings', array(), '', true);
28 28
 		}
29 29
 
30
-		if ( false === get_option( 'wl_analytics_settings' ) ) {
31
-			add_option( 'wl_analytics_settings', false, '', true );
30
+		if (false === get_option('wl_analytics_settings')) {
31
+			add_option('wl_analytics_settings', false, '', true);
32 32
 		}
33 33
 
34
-		if ( false === get_option( 'wl_entity_type_settings' ) ) {
35
-			add_option( 'wl_entity_type_settings', array(), '', true );
34
+		if (false === get_option('wl_entity_type_settings')) {
35
+			add_option('wl_entity_type_settings', array(), '', true);
36 36
 		}
37 37
 
38 38
 		// Added for feature request 1496 (Webhooks)
39
-		if ( false === get_option( 'wl_webhooks_settings' ) ) {
40
-			add_option( 'wl_webhooks_settings', array(), '', false );
39
+		if (false === get_option('wl_webhooks_settings')) {
40
+			add_option('wl_webhooks_settings', array(), '', false);
41 41
 		}
42 42
 
43
-		$wpdb->query( "UPDATE {$wpdb->options} SET autoload = 'no'"
44
-		              . " WHERE option_name IN ( 'wl_mappings', 'wl_analytics_settings', 'wl_entity_type_settings', 'wl_webhooks_settings', 'WPLANG' )" );
43
+		$wpdb->query("UPDATE {$wpdb->options} SET autoload = 'no'"
44
+		              . " WHERE option_name IN ( 'wl_mappings', 'wl_analytics_settings', 'wl_entity_type_settings', 'wl_webhooks_settings', 'WPLANG' )");
45 45
 
46 46
 	}
47 47
 
Please login to merge, or discard this patch.
src/wordlift/webhooks/class-webhooks-loader.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,18 +14,18 @@
 block discarded – undo
14 14
  */
15 15
 class Webhooks_Loader {
16 16
 
17
-	public function init_all_dependencies() {
17
+    public function init_all_dependencies() {
18 18
 
19
-		$settings_tab = new Settings_Tab();
20
-		$settings_tab->init();
19
+        $settings_tab = new Settings_Tab();
20
+        $settings_tab->init();
21 21
 
22
-	}
22
+    }
23 23
 
24
-	public function get_feature_slug() {
25
-		return 'webhooksobject';
26
-	}
24
+    public function get_feature_slug() {
25
+        return 'webhooksobject';
26
+    }
27 27
 
28
-	public function get_feature_default_value() {
29
-		return false;
30
-	}
28
+    public function get_feature_default_value() {
29
+        return false;
30
+    }
31 31
 }
Please login to merge, or discard this patch.
src/admin/partials/wordlift-admin-settings-webhooksobject-settings-page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
      * Added for feature request 1496
5 5
      *
6 6
      */
7
-    settings_errors( 'wl_webhook_error' );
7
+    settings_errors('wl_webhook_error');
8 8
 ?>
9 9
     <form method="post" action="options.php">
10 10
         <?php settings_fields('wl_webhooks_settings'); ?>
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
             <tr>
13 13
             </tr>
14 14
             <tr>
15
-                <td><?php esc_html_e( 'Enter the Webhook URL', 'wordlift' ); ?> </td>
15
+                <td><?php esc_html_e('Enter the Webhook URL', 'wordlift'); ?> </td>
16 16
                 <td><input type='text' name='wl_webhook_url' value='https://' /></td>
17
-                <td colspan="2"><?php echo submit_button( 'Add' ); ?></td>
17
+                <td colspan="2"><?php echo submit_button('Add'); ?></td>
18 18
             </tr>
19 19
         </table>
20 20
     </form>
Please login to merge, or discard this patch.