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