PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.6
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.6
3.4.6 3.4.5 3.4.4 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 All 199 releases
← All changes | admin/importers/class-convertkit-admin-importer-aweber.php +18 -0 3.3.8 → 3.4.6 View file →
@@ -127,8 +127,26 @@
127 127
128 128 }
129 129
130 130 /**
131 + * Returns whether the given block ID attribute value matches the AWeber form ID.
132 + *
133 + * AWeber's block stores the list ID, form ID and form type e.g. 6924484-289586845-webform.
134 + *
135 + * @since 3.4.5
136 + *
137 + * @param mixed $value Block ID attribute value.
138 + * @param string|int $third_party_form_id Third Party Form ID.
139 + * @return bool
140 + */
141 + protected function block_id_attribute_matches( $value, $third_party_form_id ) {
142 +
143 + $parts = explode( '-', (string) $value );
144 + return isset( $parts[1] ) && $parts[1] === (string) $third_party_form_id;
145 +
146 + }
147 +
148 + /**
131 149 * Returns an array of AWeber form IDs and titles found in the posts.
132 150 *
133 151 * @since 3.1.5
134 152 *