XProfile_Field::create( $args, $assoc_args )
Create an XProfile field.
Contents
Description Description
OPTIONS OPTIONS
[–type=] : Field type. [–type=] : Field type.
default: textbox default: textbox
–field-group-id=
–name=
[–porcelain] : Output just the new field id.
EXAMPLES EXAMPLES
$ wp bp xprofile field create --type=checkbox --field-group-id=508 --name="Field Name"
Success: Created XProfile field "Field Name" (ID 24564).
$ wp bp xprofile field add --field-group-id=165 --name="Another Field"
Success: Created XProfile field "Another Field" (ID 5465).
Source Source
File: cli/src/xprofile-field.php