Tuesday, 27 August 2013

add_user_meta() vs update_user_meta()

add_user_meta() vs update_user_meta()

I'm looking at the docs for add_user_meta() vs update_user_meta().
If the current meta_key does not exist for a user, will update_user_meta()
automatically add the meta_key for that user or do you have to define the
meta_key with add_user_meta() first?

No comments:

Post a Comment