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