Gallery
Wordpress + Coda Starter Kit
Share
Explore
Users

icon picker
4. Delete Users

Level: Advanced

Finally we also have the delete function. The DeleteUser function allows us to easily delete the user from our Wordpress sites.
There are a couple of parameters when deleting users.
User ID - The user ID associated with the user
Reassign User ID - The user ID who all pages and posts are reassigned to after deleting a user.
One example to make it easier is to create some drop-downs and link them to a button. Although this makes it easy to delete users it’s function also “reassigns + deletes from Buffer table + Deletes from User Manager table” so it is an advanced formula within the button.
Choose a user to delete:
testuser3
and also who to reassign post & pages to
andy-user
Delete User "testuser3"and reassign to "andy-user"
Another option is we have set up the delete button so we can easily choose the User from our previously set-up table. When we push the delete button it sends a call to our Wordpress site and deletes the user. It then deletes the row from our table.
Remember once deleted to re-sync the User table.
Delete Users Using A Table
Status
Email
Username
Reassign User
Safety Lock
Delete User
1
Draft
coda-connect
andy-user
Delete User
2
Draft
cru-od-developer
Delete User
3
Draft
cru-li-developer
Delete User
4
In Sync
,
Delete User
5
In Sync
,
Delete User
There are no rows in this table

Parameters - Delete User

image.png
DeleteUser​(account, UserID, Reassign​)
Delete a User entry in Wordpress using a Coda button
INPUTS
account: The Wordpress + Coda account used to take this action.
UserID: Unique identifier for the object.
Reassign: Reassign the deleted user's posts and links to this user ID.

Next Steps


Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.