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