PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.0.8
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.0.8
3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 All 195 releases
← All changes | includes/functions.php +3 -103 2.2.22.0.8 View file →
@@ -125,34 +125,8 @@
125 125
126 126 }
127 127
128 128 /**
129 - * Helper method to get supported Post Types for Restricted Content (Member's Content)
130 - *
131 - * @since 2.1.0
132 - *
133 - * @return array Post Types
134 - */
135 -function convertkit_get_supported_restrict_content_post_types() {
136 -
137 - $post_types = array(
138 - 'page',
139 - );
140 -
141 - /**
142 - * Defines the Post Types that support Restricted Content / Members Content functionality.
143 - *
144 - * @since 2.0.0
145 - *
146 - * @param array $post_types Post Types
147 - */
148 - $post_types = apply_filters( 'convertkit_get_supported_restrict_content_post_types', $post_types );
149 -
150 - return $post_types;
151 -
152 -}
153 -
154 -/**
155 129 * Helper method to get registered Shortcodes.
156 130 *
157 131 * @since 1.9.6.5
158 132 *
@@ -199,32 +173,8 @@
199 173
200 174 }
201 175
202 176 /**
203 - * Helper method to get registered Block formatters for Gutenberg.
204 - *
205 - * @since 2.2.0
206 - *
207 - * @return array Block formatters
208 - */
209 -function convertkit_get_block_formatters() {
210 -
211 - $block_formatters = array();
212 -
213 - /**
214 - * Registers block formatters in Gutenberg for the ConvertKit Plugin.
215 - *
216 - * @since 2.2.0
217 - *
218 - * @param array $block_formatters Block formatters.
219 - */
220 - $block_formatters = apply_filters( 'convertkit_get_block_formatters', $block_formatters );
221 -
222 - return $block_formatters;
223 -
224 -}
225 -
226 -/**
227 177 * Helper method to return the Plugin Settings Link
228 178 *
229 179 * @since 1.9.6
230 180 *
@@ -252,16 +202,9 @@
252 202 * @return string ConvertKit Registration URL.
253 203 */
254 204 function convertkit_get_registration_url() {
255 205
256 - return add_query_arg(
257 - array(
258 - 'utm_source' => 'wordpress',
259 - 'utm_term' => get_locale(),
260 - 'utm_content' => 'convertkit',
261 - ),
262 - 'https://app.convertkit.com/users/signup'
263 - );
206 + return 'https://app.convertkit.com/users/signup?utm_source=wordpress&utm_content=convertkit';
264 207
265 208 }
266 209
267 210 /**
@@ -272,16 +215,9 @@
272 215 * @return string ConvertKit Login URL.
273 216 */
274 217 function convertkit_get_sign_in_url() {
275 218
276 - return add_query_arg(
277 - array(
278 - 'utm_source' => 'wordpress',
279 - 'utm_term' => get_locale(),
280 - 'utm_content' => 'convertkit',
281 - ),
282 - 'https://app.convertkit.com/'
283 - );
219 + return 'https://app.convertkit.com/?utm_source=wordpress&utm_content=convertkit';
284 220
285 221 }
286 222
287 223 /**
@@ -292,16 +228,9 @@
292 228 * @return string ConvertKit App URL.
293 229 */
294 230 function convertkit_get_api_key_url() {
295 231
296 - return add_query_arg(
297 - array(
298 - 'utm_source' => 'wordpress',
299 - 'utm_term' => get_locale(),
300 - 'utm_content' => 'convertkit',
301 - ),
302 - 'https://app.convertkit.com/account_settings/advanced_settings/'
303 - );
232 + return 'https://app.convertkit.com/account_settings/advanced_settings/?utm_source=wordpress&utm_content=convertkit';
304 233
305 234 }
306 235
307 236 /**
@@ -324,35 +253,6 @@
324 253 function convertkit_select2_enqueue_styles() {
325 254
326 255 wp_enqueue_style( 'convertkit-select2', 'https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css', array(), CONVERTKIT_PLUGIN_VERSION );
327 256 wp_enqueue_style( 'convertkit-admin-select2', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/select2.css', array(), CONVERTKIT_PLUGIN_VERSION );
328 -
329 -}
330 -
331 -/**
332 - * Return the contents of the given local file.
333 - *
334 - * @since 2.2.2
335 - *
336 - * @param string $local_file Local file, including path.
337 - * @return string File contents.
338 - */
339 -function convertkit_get_file_contents( $local_file ) {
340 -
341 - // Call globals.
342 - global $wp_filesystem;
343 -
344 - // Load filesystem class.
345 - require_once ABSPATH . 'wp-admin/includes/file.php';
346 -
347 - // Initiate.
348 - WP_Filesystem();
349 -
350 - // Bail if the file doesn't exist.
351 - if ( ! $wp_filesystem->exists( $local_file ) ) {
352 - return '';
353 - }
354 -
355 - // Return file's contents.
356 - return $wp_filesystem->get_contents( $local_file );
357 257
358 258 }