[wp-trac] [WordPress Trac] #49809: Add user meta is saving more values
WordPress Trac
noreply at wordpress.org
Sat Apr 4 17:38:40 UTC 2020
#49809: Add user meta is saving more values
--------------------------------+----------------------
Reporter: egyptimhotep | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Options, Meta APIs | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------------+----------------------
Comment (by knutsp):
Hello @egyptimhotep
This is the expected behaviour. You may either supply en extra parameter
$unique and set it to true, or use ´update_user_meta()´. Documented here
https://developer.wordpress.org/reference/functions/add_user_meta/ and
https://developer.wordpress.org/reference/functions/update_user_meta/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49809#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list