When i try to execute this code
update_post_meta( $id, "_woocommerce_my_meta", 'a:1:{s:4:"gtin";s:13:"10";}' );
The meta was changing to
s:27:"a:1:{s:4:"gtin";s:13:"10";}";
By simply changing the code to
update_post_meta( $id, "_woocommerce_my_meta", ':a:1:{s:4:"gtin";s:13:"10";}' );
adding a ":" at the end of string, it works...
But i dont need this ":" Is this a function bug? Or is there any reason for that? Or some way around this problem?