PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.4.0
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.4.0
3.4.3 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 All 196 releases
← All changes | includes/class-convertkit-post.php +4 -17 3.3.92.4.0 View file →
@@ -72,20 +72,8 @@
72 72 $meta[ $key ] = $value;
73 73 }
74 74 }
75 75
76 - /**
77 - * Programmatically define ConvertKit settings for an individual Post, overriding those defined in the
78 - * meta box.
79 - *
80 - * @since 2.4.4
81 - *
82 - * @param array $meta Post Settings.
83 - * @param int $post_id Post ID.
84 - * @return array Post Settings.
85 - */
86 - $meta = apply_filters( 'convertkit_post_settings', $meta, $this->post_id );
87 -
88 76 // Assign Post's Settings to the object.
89 77 $this->settings = $meta;
90 78
91 79 }
@@ -313,11 +301,11 @@
313 301 public function get_default_settings() {
314 302
315 303 $defaults = array(
316 304 'form' => '-1', // -1: Plugin Default Form, 0: No Form, 1+: Specific Form ID on ConvertKit.
317 - 'landing_page' => '0', // 0: None, 1+: Specific Landing Page ID.
318 - 'tag' => '0', // 0: None, 1+: Specific Tag ID.
319 - 'restrict_content' => '0', // 0: None, form_<id> / tag_<id> / product_<id>: restrict to that resource.
305 + 'landing_page' => '',
306 + 'tag' => '',
307 + 'restrict_content' => '',
320 308 );
321 309
322 310 /**
323 311 * The default settings, used to populate the Post's Settings when a Post has no Settings.
@@ -324,11 +312,10 @@
324 312 *
325 313 * @since 1.9.6
326 314 *
327 315 * @param array $defaults Default Settings.
328 - * @param int $post_id Post ID.
329 316 */
330 - $defaults = apply_filters( 'convertkit_post_get_default_settings', $defaults, $this->post_id );
317 + $defaults = apply_filters( 'convertkit_post_get_default_settings', $defaults );
331 318
332 319 return $defaults;
333 320
334 321 }