Custom Meta Field with Serialized Data
-
Hi,
I was able to save additional custom field for product variants with the update_post_meta function. The data are saved in the db as an array but the update_post_meta function automatically serializes it as a string. Using the Attribute – Custom meta field filter and entering the slug of the custom field saved in the db, the data is retrieved but appears as a string of this type: a:1:a:4{i:0;s:4: “test”;i:1;s:4: “test”;i:2;s:4: “test”;i:3;s:4: “test”;}, exactly as it is saved in the db. Is there any way to retrieve the data in the correct way and make the filter works? Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Meta Field with Serialized Data’ is closed to new replies.