Wordpress plugins
Deserialize Metadata

Deserialize Metadata

Version : 0.0.8
Tested up to : 4.7.11
Number of download : 128
Average rating : 0 / 5 on 0 votes 0 votes, 0 avg.rating

Screenshots

Deserialize Metadata
Deserialize Metadata
Deserialize Metadata
Deserialize Metadata

When migrating from another system (i.e. Drupal), WordPress can require data that is currently serialized to be unserialized and stored in its own WordPress-specific tables/columns. This plugin can look for such data, and deserialize and store it, based on the plugin settings. This plugin handles one (configurable) imported field at a time, so all imported, serialized data needs to be stored in that single field. Each key in that field can be mapped to any column, and stored in either wp_postmeta or wp_posts, as shown below: ` if ( $maps[$key][‘wp_table’] === ‘wp_postmeta’ && $value != ” && $value != NULL ) { add_post_meta( $post_id, $maps[$key][‘wp_column’], $value, $maps[$key][‘unique’] ); } else if ( $maps[$key][‘wp_table’] === ‘wp_posts’ && $value != ” && $value != NULL ) { $post = array( ‘ID’ => $post_id, $maps[$key][‘wp_column’] => $value ); wp_update_post( $post ); } ` The wp_schedule_event method is used to deserialize the data and place it into its appropriate fields, and it can run at any configurable interval (you pick a number, and then a unit of time).

Download now