• How does this plugin handle serialized arrays of data? No offence, but it does not seem to handle it very gracefully.

    I wonder if you could detect a serialized array (https://gist.github.com/cs278/217091) and then unserialize it into a string — maybe a pipe (|) separated list? I thought about using commas, but that might get messy with other data.

    I think there should also be a checkbox to flag data as serialized or not. If your plugin unserializes for front-end display, then the box is checked. IF not, then it is not checked. Then when saving the data back, you can serialize it or not based on the status of the checkbox.

    If your plugin was available in a git repo somewhere, I’d have written this code and submitted a pull request 😉

    https://wordpress.org/plugins/user-profile-meta/

  • The topic ‘Serialized data’ is closed to new replies.