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