| @@ -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 | } |