← All changes
|
includes/integrations/wishlist/class-convertkit-wishlist-settings.php
+11
-11
2.2.9
→
3.4.4
View file →
| @@ -77,16 +77,16 @@ | ||
| 77 | 77 | |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * Returns the ConvertKit Form ID that is mapped against the given WishList Member Level ID. | |
| 81 | + * Returns the ConvertKit subscribe setting that is mapped against the given WishList Member Level ID. | |
| 82 | 82 | * |
| 83 | - * @since 1.9.6 | |
| 83 | + * @since 2.5.4 | |
| 84 | 84 | * |
| 85 | 85 | * @param int $wlm_level_id WishList Member Level ID. |
| 86 | - * @return bool|int | |
| 86 | + * @return bool|string false|subscribe|form:id|tag:id|sequence:id. | |
| 87 | 87 | */ |
| 88 | - public function get_convertkit_form_id_by_wishlist_member_level_id( $wlm_level_id ) { | |
| 88 | + public function get_convertkit_add_setting_by_wishlist_member_level_id( $wlm_level_id ) { | |
| 89 | 89 | |
| 90 | 90 | // Bail if no settings exist. |
| 91 | 91 | if ( ! $this->has_settings() ) { |
| 92 | 92 | return false; |
| @@ -92,25 +92,25 @@ | ||
| 92 | 92 | return false; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | // Bail if no mapping exists. |
| 96 | - if ( ! array_key_exists( $wlm_level_id . '_form', $this->get() ) ) { | |
| 96 | + if ( ! array_key_exists( $wlm_level_id . '_add', $this->get() ) ) { | |
| 97 | 97 | return false; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - return $this->get()[ $wlm_level_id . '_form' ]; | |
| 100 | + return $this->get()[ $wlm_level_id . '_add' ]; | |
| 101 | 101 | |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * Returns the ConvertKit Tag ID that is mapped against the given WishList Member Level ID. | |
| 105 | + * Returns the ConvertKit remove setting that is mapped against the given WishList Member Level ID. | |
| 106 | 106 | * |
| 107 | 107 | * @since 1.9.6 |
| 108 | 108 | * |
| 109 | 109 | * @param int $wlm_level_id WishList Member Level ID. |
| 110 | - * @return bool|string|int false|'unsubscribe'|Tag ID | |
| 110 | + * @return bool|string false|subscribe|unsubscribe|form:id|tag:id|sequence:id. | |
| 111 | 111 | */ |
| 112 | - public function get_convertkit_tag_id_by_wishlist_member_level_id( $wlm_level_id ) { | |
| 112 | + public function get_convertkit_remove_setting_by_wishlist_member_level_id( $wlm_level_id ) { | |
| 113 | 113 | |
| 114 | 114 | // Bail if no settings exist. |
| 115 | 115 | if ( ! $this->has_settings() ) { |
| 116 | 116 | return false; |
| @@ -116,13 +116,13 @@ | ||
| 116 | 116 | return false; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | // Bail if no mapping exists. |
| 120 | - if ( ! array_key_exists( $wlm_level_id . '_unsubscribe', $this->get() ) ) { | |
| 120 | + if ( ! array_key_exists( $wlm_level_id . '_remove', $this->get() ) ) { | |
| 121 | 121 | return false; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - return $this->get()[ $wlm_level_id . '_unsubscribe' ]; | |
| 124 | + return $this->get()[ $wlm_level_id . '_remove' ]; | |
| 125 | 125 | |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |