Serialized data
-
Hello,
I′ve added a filter for not storing images metadata in db.
add_filter( ‘wp_read_image_metadata’, ‘__return_false’ );
Now I′d like to delete previously stored data but it′s serialized in wp_postmeta with meta_key value
_wp_attachment_metadata
This is the array:
[image_meta] => Array ( [aperture] => 0 [credit] => [camera] => => [created_timestamp] => 0 [copyright] => [focal_length] => 0 [iso] => 0 [shutter_speed] => 0 [title] => )
I′ve read it′s not recommended to unserialize data in WP db manually. I don′t know why. If that′s true, is there a script or any other way to unserialize and delete these data?
Regards,
Julia
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Serialized data’ is closed to new replies.