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