XProfile_Data::delete( $args,  $assoc_args )

Delete XProfile 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.

[–delete-all] : Delete all data for the user.

[–yes] : Answer yes to the confirmation message.

Top ↑

EXAMPLES EXAMPLES

$ wp bp xprofile data delete --user-id=45 --field-id=120 --yes
Success: XProfile data removed.

$ wp bp xprofile data remove --user-id=user_test --delete-all --yes
Success: XProfile data removed.

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.