Switch language

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




add_user_meta [ WordPress Function ]

add_user_meta ( $user_id, $meta_key, $meta_value, $unique = false )
Parameters:
  • (int) $user_id Post ID.
  • (string) $meta_key Metadata name.
  • (mixed) $meta_value Metadata value.
  • (bool) $unique Optional, default is false. Whether the same key should not be added.
Uses:
Links:
Returns:
  • (bool) False for failure. True for success.
Defined at:



Add meta data field to a user.

Post meta data is called "Custom Fields" on the Administration Screens.

Source


<?php
function add_user_meta($user_id$meta_key$meta_value$unique false) {
    return 
add_metadata('user'$user_id$meta_key$meta_value$unique);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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