XProfile_Data::set( $args,  $assoc_args )

Set profile data for a user.


Description Description

Top ↑

OPTIONS OPTIONS

–user-id= : Identifier for the user. Accepts either a user_login or a numeric ID.

–field-id= : Identifier for the field. Accepts either the name of the field or a numeric ID.

–value= : Value to set.

Top ↑

EXAMPLE EXAMPLE

$ wp bp xprofile data set --user-id=45 --field-id=120 --value=teste
Success: Updated XProfile field "Field Name" (ID 120) with value  "teste" for user user_login (ID 45).

Source Source

File: cli/src/xprofile-data.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.