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