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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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