update_post_meta broke url value
Question
I’m having a problem, i have a post meta key, its value is a url like https:// .. like this
but now if I pass the value to update_post_meta
its saves it as "p"
I check the wordpress codex docs about update_post_meta and it says
Character Escaping
Post meta values are passed through the stripslashes() function upon being stored, so you will need to be careful when passing in values (such as JSON) that might include escaped characters.
could that be a problem?
please help 🙂
0
2 months
0 Answers
17 views
0
Leave an answer
You must login or register to add a new answer .