Deserialize Metadata
When migrating from another system (i.e. Drupal), WordPress can require data that is currently serialized…
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 2757 days ago
Is Deserialize Metadata abandoned?
Possibly abandoned (last update 2757 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
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).
Installation
- Upload the
deserialize-metadatafolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Fill out the settings on the Deserialize Metadata subpage of the Settings menu
Frequently Asked Questions
Installation Instructions
- Upload the
deserialize-metadatafolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Fill out the settings on the Deserialize Metadata subpage of the Settings menu