Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_user_meta [ WordPress Function ]

get_user_meta ( $user_id, $key = '', $single = false )
Parameters:
  • (int) $user_id Post ID.
  • (string) $key Optional. The meta key to retrieve. By default, returns data for all keys.
  • (bool) $single Whether to return a single value.
Uses:
Links:
Returns:
  • (mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.
Defined at:



Retrieve user meta field for a user.

Source


<?php
function get_user_meta($user_id$key ''$single false) {
    return 
get_metadata('user'$user_id$key$single);
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

0 User Note(s)

None yet. Be the first!

Add New ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics