Sprache wechseln
wpseek auf Twitter


Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




add_user_meta [ ]

add_user_meta ( $user_id, $meta_key, $meta_value, $unique = false )
Parameter:
  • (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.
Nutzt:
Links:
Gibt zurück:
  • (bool) False for failure. True for success.
Definiert in:
Codex



Add meta data field to a user.

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

Quellcode

function add_user_meta($user_id, $meta_key, $meta_value, $unique = false) {
	return add_metadata('user', $user_id, $meta_key, $meta_value, $unique);
}

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

Nutzerduskussionen [ wordpress.org ]

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...