Skip to content
Wordpress + Coda Starter Kit
  • Pages
    • Wordpress + Coda Starter Kit
    • Lite vs Pro
      • Wordpress To Coda
      • Coda To Wordpress
    • Lite Version
      • Quick Start Video Guide
      • Pull Wordpress To Coda
      • Embed Data In Wordpress
    • Pro Version
      • Setup Guides
        • Quick Start Video Guide
        • 1. Install & Connect
          • New User Accounts
          • Re-Connect Accounts
          • Repair Accounts
            • Syncing Tables FIX
            • Button & Actions FIX
            • Embedding FIX
            • Template Issues FIX
            • Error Messages
        • 2. Testing Installations
          • Fresh Doc Testing
          • Copied Template Testing
        • 3. Button Actions
        • 4. Embedding On Wordpress
          • Shortcode Manager (SCM)
            • 1. Embed A Table
            • 2. Row, Column & Cell
            • 3. Delete Using SCM
            • 4. More Embed Options
      • Wordpress To Coda
        • Users
          • 1. Display User Table
          • 2. Create Users
          • 3. Update Users
          • icon picker
            4. Delete Users
        • Tags
          • Display Tag Table
          • Create, Update & Delete Tags
        • Categories
        • Pages
          • Display Pages
          • Create, Update & Delete
        • Posts
          • Display Posts
          • Create, Update & Delete
        • Media
      • Coda To Wordpress
        • SCM
        • Examples
          • Opening Hour Examples
            • Embed Table
            • Message Row
            • Open Today Table
            • Advanced Opening Hours
          • Coda Pack Examples
          • RSS Feed Examples
          • Banner Examples
          • Daily Banner Messages
    • Knowledge Base
      • FAQ's
      • Troubleshooting
      • Best Practices
      • Re-Syncing & Buffer Tables
        • Sync Settings
      • How to get Coda IDs
      • Shortcode Options
      • Available Parameters
      • Pack Updates
        • Download Plugin
        • Feature Requests
        • Limitations
    • Data - Hidden (Usually)
      • RAW Tables
      • Synced From Wordpress
      • BUFFER Tables & Resync
      • Synced To Wordpress
      • CROSSDOC
      • FIX Scratchpad
        • Beta Users - Read First Please

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:
and also who to reassign post & pages to
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
coda-connect
Delete User
cru-od-developer
Delete User
cru-li-developer
Delete User
,
Delete User
,
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


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.