PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.5
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.5
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 2.2.9 All 198 releases
← All changes | includes/class-convertkit-post.php +24 -0 3.3.8 → 3.4.5 View file →
@@ -288,8 +288,32 @@
288 288
289 289 }
290 290
291 291 /**
292 + * Returns all Post Meta rows stored against this Post for the Plugin's Post Meta key.
293 + *
294 + * Queries the database directly, as each row's meta ID is required to delete individual
295 + * duplicate rows, which get_post_meta() doesn't return.
296 + *
297 + * @since 3.4.5
298 + *
299 + * @return array Post Meta rows, oldest first.
300 + */
301 + public function get_meta_rows() {
302 +
303 + global $wpdb;
304 +
305 + return $wpdb->get_results(
306 + $wpdb->prepare(
307 + "SELECT meta_id, meta_value FROM {$wpdb->postmeta} WHERE post_id = %d AND meta_key = %s ORDER BY meta_id ASC",
308 + $this->post_id,
309 + self::POST_META_KEY
310 + )
311 + );
312 +
313 + }
314 +
315 + /**
292 316 * Saves Post settings to the Post.
293 317 *
294 318 * @since 1.9.6
295 319 *