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