get_user(post)_meta (1 post)

  1. Gyrate360
    Posted 2 years ago #

    About get_user(post)_meta
    I think that the function "get_user(post)_meta" needs a parameter for default value
    sometimes we just need a default value to display.
    for example: to get one's gender,if he/she doesn't add gender,when we use get_user_meta($user_id,'gender',true) but the result is empty,so in this case we can use a default value like something "secrecy",
    I think of it like this get_user_meta($user_id,'gender',true,'secrecy')

Topic Closed

This topic has been closed to new replies.

About this Topic