taxonomy select variable format in DB
-
I use taxonomy select field in user profile fields. It works ok.
My question is, when I look in database in table usermeta it’s written:
meta_key: _cmb2_user_delovna_podrocja
meta_value: a:1:{i:0;s:1:”4″;}Cause in my app I’ll have sometimes to put in values programaticly I need to know what kind of format this is. I know s:1 is number of characters in semicolons and :”4″ is taxonomy ID, but what is a:1{i:0
Is there any wp or cmb2 function that I can use to convert ID to this format and then write it to database.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘taxonomy select variable format in DB’ is closed to new replies.