XProfile_Field::create( $args,  $assoc_args )

Create an XProfile field.


Description Description

Top ↑

OPTIONS OPTIONS

Top ↑

[–type=] : Field type. [–type=] : Field type.

Top ↑

default: textbox default: textbox

–field-group-id= : ID of the field group where the new field will be created.

–name= : Name of the new field.

[–porcelain] : Output just the new field id.

Top ↑

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


			

Top ↑

User Contributed Notes User Contributed Notes

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