-
-
Couldn't load subscription status.
- Fork 63
a first look on webhooks v2
ATTENTION: Note that this feature or article is for advanced users.
A webhook is a way for an app or software like Ultimate Multisite to provide other applications with real-time information. A webhook delivers data or payloads to other applications as it happens, meaning you get data immediately.
This is helpful should you need to integrate or pass certain data from Ultimate Multisite going to another CRM or system each time an event is triggered. For example, you need to send the user's name and email address to a mailing list each time a new user account is created.
To create a webhook, go to your network admin dashboard. Click on Ultimate Multisite > Webhooks > Add New Webhook.
When creating a new webhook you will be asked for information like Name, URL, and Event. You can use any name you want for your webhook. The most important fields are the URL and Event.
URL is the endpoint or the destination to which Ultimate Multisite will send the payload or data. This is the application that will receive the data.
Zapier is the most common solution that user uses to make integration with 3rd party application easier. Without a platform like Zapier, you will need to manually create a custom function that will catch the data and process it. See this article on how to use Ultimate Multisite webhook with Zapier.
In this article, we will be looking at the basic concept of how a webhook works and the events available in Ultimate Multisite. We will be using a 3rd party site called requestbin.com. This site will allow us to create an endpoint and catch the payload without doing any coding. Disclaimer: all it will do is show us that the data has been received. There will be no processing or any kind of action done to the payload.
Go to requestbin.com and click Create Request Bin.
After clicking that button, it will ask you to log in if you already have an account or sign up. If you already have an account it will lead you right to their dashboard. On their dashboard, you will immediately see the endpoint or URL you can use in creating your Ultimate Multisite webhook.
Go ahead and copy the URL and go back to Ultimate Multisite. Place the endpoint on the URL field and select an event from the dropdown. In this example, we will be selecting Payment Received.
This event is triggered whenever a user makes a payment. All the events available, their description, and payloads are listed at the bottom of the page. Click the Add New Webhook button to save the webhook.
We can now send a test event to the endpoint for us to see if the webhook we created is working. We can do this by clicking Send Test Event under the webhook we created.
This shows a confirmation window saying that the test was successful.
Now if we go back to the Requestbin site we will see that the payload has been received containing some test data.
This is the basic principle of how webhook and endpoints work. If you are to create a custom endpoint, you will need to create a custom function to process the data your receive from Ultimate Multisite.
- Ultimate Multisite 101
- Basic Concepts
- What is WordPress Multisite?
- Ultimate Multisite Requirements
- Why Ultimate Multisite
- Installing Ultimate Multisite (v2)
- How do I Install WordPress Multisite?
- Understanding the Ultimate Multisite Dashboard
- Understanding your Dashboard (v2)
- Touring the Admin Panel
- Managing Customers
- Managing Sites
- Managing Memberships (v2)
- Managing Payments and Invoices
- Managing System Emails
- Site Templates (v2)
- Auto Search and Replace in Site Templates (v2)
- Checkout Forms
- Creating your First Subscription Product (v2)
- Creating Discount Codes (v2)
- Managing Shareable Links for Plans
- Customizing your Registration Form
- The Registration Flow (v2)
- How to Configure Domain Mapping (v2)
- How to configure domain mapping (v1)
- Setting the Sunrise constant to true on Closte
- Closte Integration
- Cloudflare Integration
- Cloudways Integration
- cPanel Integration
- GridPane Integration
- RunCloud Integration
- ServerPilot Integration
- WP Engine Integration
- WPMU DEV Integration
- Setting Up The Stripe Gateway (v2)
- Setting Up The PayPal Gateway (v2)
- Setting Up Manual Payments (v2)
- Getting Started with the PayFast Payment Gateway
- Getting Started with the GoCardless Payment Gateway
- Getting Paid (v2)
- Tax Handling
- Your Client's Account Page (v2)
- Your Client's Websites (v2)
- Upgrading a Plan (v2)
- Downgrading a plan (v2)
- Canceling a Membership (v2)
- How can I access my account page for the first time?
- How can I cancel my subscription?
- Setting Up The WooCommerce Integration (v2)
- Integrating Ultimate Multisite with Zapier
- Event: Register an account via Zapier
- Using Ultimate Multisite: MailChimp Integration
- Using Ultimate Multisite: AffiliateWP Integration to create your own referral program for Ultimate Multisite
- A First Look on Webhooks (v2)
- Customizing your Admin Panel with PRO Theme
- Customizing your Admin Panel with Material WP
- Placing Ads on your network with Ultimate Multisite: Ad Injector
- Creating Custom Admin Pages and Sub-pages using Ultimate Multisite: Admin Page Creator
- Editing Plugins and Themes Meta Information with Ultimate Multisite: Plugin and Theme Manager
- Ultimate Multisite Hooks and filters
- The Ultimate Multisite Register API endpoint
- How to use Ultimate Multisite snippets on our GitHub repository
- Code Snippets for v2
- How to Get Custom Development Help from Codeable?
- Translating Ultimate Multisite
- Activating Ultimate Multisite: Language Selector
- Re-ordering the Ultimate Multisite country list







