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