Delete post meta by serialized meta value
Try below code to delete the post_meta by a specific value of the specialized data: $args = array( ‘post_type’ => ‘post’, ‘meta_key’ => ‘any-meta-key’, ‘posts_per_page’ => -1 ); $query = new WP_Query( $args ); if($query->have_posts()){ while($query->have_posts()){ $query->the_post(); $get_ID = get_post_meta($post->ID, ‘any-meta-key’, true); // Change the id value that you want to delete if ( !empty($get_ID[‘id’]) … Read more