tr Skip to content
Black Friday FlowMattic for life, 12 payments of $33.25 Or $399 once. Nothing added for splitting Ends in --Days --Hrs --Min --Sec See the deal

Connect Buy Me a Coffee and WordPress

Buy Me a Coffee takes the payments and WordPress hosts the content your supporters came for. FlowMattic creates an account for each new member, gives them a supporter role, removes it when they cancel and changes it when they switch tiers. Donations can also post a supporter's message to your site. For creators, writers and podcasters running members-only pages.

43 triggers 71 actions 7 example workflows 4 ready-made templates Unlimited runs

Try a pairing

When this happens in Buy Me a Coffee11 triggers

Do this in WordPress71 actions

1. TriggerMembership started
2. ActionCreate User if Not Exists

When Buy Me a Coffee fires Membership started, FlowMattic runs Create User if Not Exists in WordPress with the data from that event.

You build this in the FlowMattic workflow builder on your own site. See the setup steps

Buy Me a Coffee and WordPress workflows you can build

Each one uses only triggers and actions the two integrations ship today, plus FlowMattic's own tools. Where the library has a ready-made template, import it instead of building from scratch.

Buy Me a Coffee app icon WordPress app icon

Create a WordPress account for each new member

When a membership starts, Create User if Not Exists makes an account for the member's email, or finds the one they have, and Add Role to User gives them the supporter role your private pages check.

Membership startedCreate User if Not ExistsAdd Role to User

Buy Me a Coffee app icon WordPress app icon

Remove the supporter role when a membership is cancelled

Get User by Email finds the member's account and Remove User Role takes the supporter role away, so members-only posts stay for paying members.

Membership cancelledGet User by EmailRemove User Role

Buy Me a Coffee app icon WordPress app icon

Change the member's role when they switch tiers

A Router reads the new membership level and Change User Role sets the matching role, so a member who upgrades sees the extra content on their next visit.

Membership updatedGet User by EmailRouterChange User Role

Buy Me a Coffee app icon WordPress app icon

Post supporters' messages to a thank-you wall

A Filter keeps donations that include a public message. Each one becomes a post in a supporters post type, which your theme can list on a thank-you page.

Donation createdFilterNew Post

Buy Me a Coffee app icon WordPress app icon

Show wishlist funding progress on your site

Each wishlist payment reads the item's running total from post meta, adds the new amount and saves it, so a progress bar in your theme moves as fans chip in.

Wishlist payment createdGet Post MetadataNumber FormatterUpdate Post Meta

Buy Me a Coffee app icon WordPress app icon

Track each commission order as a draft post

A commission order creates a private draft with the buyer's name and request, so the work queue lives in WordPress and you can publish the finished piece from it.

Commission order createdNew Post

Buy Me a Coffee app icon WordPress app icon

Give extras buyers access to their download page

Buying an extra creates or finds the buyer's account and adds a role for that extra, which a protected download page on your site checks before showing the files.

Extras purchasedCreate User if Not ExistsAdd Role to User

Set up: accounts for new members

After setup, each new Buy Me a Coffee member gets a WordPress account with your supporter role.

  1. Create the role

    Make sure a supporter role exists on your site, or create one with a WordPress Create Role step, and use it to protect your members-only pages.

  2. Start with Membership started

    Create a workflow with the Buy Me a Coffee Membership started trigger and copy the webhook URL FlowMattic shows.

  3. Add the webhook in Buy Me a Coffee

    Paste the URL into your Buy Me a Coffee webhook settings for membership events and send a test so the member fields are captured.

  4. Create the user and add the role

    Add WordPress Create User if Not Exists with the member's email and name, then Add Role to User with your supporter role. Test and switch the workflow on.

Create a WordPress account for each new member
  1. Buy Me a Coffee app icon 1. Trigger in Buy Me a Coffee Membership started
  2. WordPress app icon 2. Action in WordPress Create User if Not Exists
  3. WordPress app icon 3. Action in WordPress Add Role to User

    Fields mapped from the earlier steps (a typical setup)

    From Buy Me a CoffeeTo WordPress
    Supporter emailUser email
    Supporter nameDisplay name
    Membership levelRole choice
Built on the FlowMattic canvas. Test each step with real data, then switch the workflow on.

Triggers and actions in this pair

A trigger starts a workflow. An action is something FlowMattic does in the app as a step.

Good to know

  • Every Buy Me a Coffee trigger is a webhook, so each one needs the FlowMattic webhook URL added in your Buy Me a Coffee account.
  • These workflows run from Buy Me a Coffee to WordPress, so WordPress events do not change anything in Buy Me a Coffee. Refund events are there to take access away.
  • Matching is by email. If a member pays with a different address from their WordPress account, a second account is created.
Buy Me a Coffee app icon

Buy Me a Coffee

Integration page

Triggers (11)

  • Donation createdTriggers when donation created webhook received
  • Donation refundedTriggers when donation refunded webhook received
  • Extras purchasedTriggers when extras purchased webhook received
  • Extras purchased refundedTriggers when extras purchase refunded webhook received
  • Commission order createdTriggers when commission order created webhook received
  • Commission order refundedTriggers when commission order refunded webhook received
  • Wishlist payment createdTriggers when wishlist payment created webhook received
  • Wishlist payment refundedTriggers when wishlist payment refunded webhook received
  • Membership startedTriggers when membership started webhook received
  • Membership updatedTriggers when membership updated webhook received
  • Membership cancelledTriggers when membership cancelled webhook received
WordPress app icon

WordPress

Integration page

Triggers (32)

  • New UserTriggers when a new user is registered
  • New PostTriggers when a new post is published
  • New PageTriggers when a new page is published
  • New MediaTriggers when a new media is uploaded
  • New CommentTriggers when a new comment is added
  • Comment ApprovedTriggers when a comment is approved
  • Update PostTriggers when a published post is updated
  • Update PageTriggers when a published page is updated
  • User LoginTriggers when an user logs into the site
  • User Visits a Page/PostTriggers when an user visit page, post or any post type singular page
  • User Deletes a PostTriggers when an user delete post of any post type
  • Post Meta UpdatedTriggers when post meta is updated
  • Post Meta Field UpdatedTriggers when post meta specific field is updated
  • User Profile UpdatedTriggers when user profile is updated
  • User Profile Field UpdatedTriggers when user profile specific field is updated
  • User Resets PasswordTriggers when user resets the password
  • User DeletedTriggers when user is deleted from the database
  • Category CreatedTriggers when a new category is created
  • Tag CreatedTriggers when a new tag is created
  • Term CreatedTriggers when a new term is created
  • User Role AddedTriggers when a new role is added to user
  • User Role RemovedTriggers when a role is removed from user
  • User Role ChangedTriggers when user role is changed
  • User Role Changed From Specific to DefinedTriggers when user role is changed from specific role to defined role
  • GDPR Export Data Request ConfirmedTriggers when user confirms request to export their personal data
  • GDPR Erase Data Request ConfirmedTriggers when user confirms request to erase their personal data
  • Plugin ActivatedTriggers when a plugin is activated
  • Plugin DeactivatedTriggers when a plugin is deactivated
  • Plugin UpdatedTriggers once for each plugin that is updated
  • Plugin DeletedTriggers when a plugin is deleted
  • Theme SwitchedTriggers when the active theme is changed
  • WordPress Core UpdatedTriggers when WordPress itself is updated

Actions (71)

  • New UserCreate a new user
  • Update UserUpdate an existing user details
  • Update User MetaUpdate User Metadata
  • Add Role to UserAdd role to existing user roles of an user
  • Change User RoleChange user role of an existing user and set new role
  • Remove User RoleRemove user role of an existing user
  • Delete UserDelete user account from site
  • New MediaCreate a new media
  • Rename MediaRename media title in media library
  • Delete MediaDelete media by ID from the media library
  • Search Media by TitleSearch media by title in media library
  • New PostCreate a new post
  • Update PostUpdate existing post of any post type with custom fields
  • Get User by IDGet an user profile by ID
  • Get User by EmailGet an user profile by Email
  • Create CategoryCreate a new category
  • Create TagCreate a new post tag
  • Create RoleCreate a new user role, if not exists
  • New CommentCreate a new comment on post
  • Get Post MetadataRetrieve all or custom metadata from any post
  • Get User MetadataRetrieve all or custom metadata from any user
  • Get Posts by Post TypeRetrieve all posts of specific post type
  • Get Post TaxonomiesRetrieve all taxonomies of a post
  • Get Post Taxonomy TermsRetrieves the terms of the taxonomy that are attached to the post
  • Get Post by IDRetrieve the post details by ID
  • Get Posts by MetadataRetrieve all posts of specific post type by metadata or custom fields
  • Get Taxonomy by NameRetrieve the taxonomy details by name
  • Get All Users by RoleRetrieve all users by user role
  • Add Tag to PostAdd a tag to the post
  • Remove Tag from PostRemove a tag from post
  • Add Category to PostAdd a category to post
  • Remove Category from PostRemove a category from post
  • Check Plugin ActiveCheck if a plugin is active
  • Activate PluginActivate a plugin if not already active
  • Update CategoryUpdate an existing category details
  • Update TagUpdate an existing tag details
  • Update TermUpdate an existing term details
  • GDPR Request Export Personal DataCreate a request to export user personal data (sends confirmation email)
  • GDPR Request Erase Personal DataCreate a request to erase user personal data (sends confirmation email)
  • GDPR Execute Export Personal DataExecute export of personal data using request ID from trigger
  • GDPR Execute Erase Personal DataExecute erasure of personal data using request ID from trigger
  • Create Media FolderCreate a new folder in the uploads directory
  • Rename Media File URLRename the actual file name and URL of a media item
  • Move Media to FolderMove a media file to a different folder in the uploads directory
  • Delete Post MetaDelete a specific meta key from a post
  • Update Post MetaUpdate a specific post meta key with a new value
  • Add Post MetaAdd a new meta key and value to a post
  • Delete User MetaDelete a specific meta key from a user
  • Update CommentUpdate an existing comment
  • Delete CommentDelete a comment by ID
  • Get CommentsRetrieve comments by post ID, user, or status
  • Set Post StatusChange the status of a post
  • Set Post ThumbnailSet the featured image of a post
  • Remove Post ThumbnailRemove the featured image from a post
  • Duplicate PostClone a post with its meta and taxonomies
  • Delete TermDelete a term from any taxonomy
  • Delete CategoryDelete a category by ID
  • Delete TagDelete a tag by ID
  • Get OptionRetrieve a WordPress option value
  • Update OptionUpdate a WordPress option value
  • Get Users by MetaRetrieve users by a specific meta key and value
  • Send Password ResetSend a password reset email to a user
  • Search WordPressSearch posts, users, post meta, user meta, taxonomy terms, options or comments. Never fails on a miss — always returns found or not_found
  • Create User if Not ExistsCreate a user only when a matching one does not exist. Always reports whether the user was created or already existed
  • Get User by UsernameGet an user profile by username (user_login)
  • Delete PostDelete post by ID from the site
  • Upload Base64 ImageUpload a base64 encoded image to the WordPress Media Library
  • Add Taxonomy to PostAdd a taxonomy to post
  • Remove Taxonomy from PostRemove a taxonomy from post
  • Create TermCreate a new taxonomy term
  • Get Media by IDRetrieve the media details by ID

Why run this pair with FlowMattic

Buy Me a Coffee and WordPress connect through FlowMattic on your own site, with no separate automation account in the middle and no charge per run.

Members live on your own site

Accounts and roles are created in your WordPress database by FlowMattic on the same server, not by another automation service.

No fee per supporter

Runs are unlimited, so a growing membership adds no FlowMattic cost however many supporters join, upgrade or leave.

Access follows the membership

Start, tier change, cancellation and refund each update the member's role, so your private pages show the right people the right content.

Common questions

Can Buy Me a Coffee members get access to members-only pages on WordPress?

Yes. Start from Membership started, create or find the member's account with Create User if Not Exists, and add a supporter role. Protect your pages by that role with your membership or content plugin.

Do new members get a password?

Add WordPress Send Password Reset after the account is created, so the member receives an email to set their own password and log in.

What happens when a donation or membership is refunded?

Use Donation refunded or Membership cancelled to find the user by email and remove the role they were given. You can also set a post back to draft with Set Post Status.

Can one-off donations give access too?

Yes. Use Donation created with the same Create User if Not Exists and Add Role to User steps, so anyone who donates gets the supporter role. Donation refunded can take it away again.

Did not find your answer? You can browse the help center or ask us directly.

Start automating Buy Me a Coffee and WordPress

Install FlowMattic, connect both accounts and import a template. Every run stays on your own server.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Reviewed 27 Oct 2026. The example workflows are written with AI from the real triggers and actions of both integrations and checked against them. Buy Me a Coffee integration 1.0.1, WordPress integration 7.3.0.