You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new user admin preference query fields added in #3551 (addressing #479) are read-only. The original issue also mentions supporting these fields in createUser and updateUser mutations.
This issue tracks adding mutation (write) support for the 4 user admin preference fields.
Description
The new user admin preference query fields added in #3551 (addressing #479) are read-only. The original issue also mentions supporting these fields in
createUserandupdateUsermutations.This issue tracks adding mutation (write) support for the 4 user admin preference fields.
Fields to Support in Mutations
adminColorStringadmin_colorfreshhasRichEditingEnabledBooleanrich_editingtruehasSyntaxHighlightingEnabledBooleansyntax_highlightingtruehasCommentShortcutsEnabledBooleancomment_shortcutsfalseExample Mutation
Implementation Notes
UserInput(forcreateUser) andUpdateUserInput(forupdateUser)update_user_option()to persist values (consistent with query resolution usingget_user_option()per feat: add core user admin preferences fields to User type #3551)'true'/'false')adminColorcould optionally validate against registered admin color schemes viawp_admin_css_color()Acceptance Criteria
updateUsermutation accepts the 4 new input fieldscreateUsermutation accepts the 4 new input fieldsupdate_user_option()Booleanto WordPress string storageupdateUsercapabilitiesRelated