-
-
Couldn't load subscription status.
- Fork 63
Cloudflare Integration
Cloudflare is a leading content delivery network (CDN) and security provider that helps protect and accelerate websites. This integration enables automatic domain management between Ultimate Multisite and Cloudflare, particularly for subdomain multisite installations.
- Automatic subdomain creation in Cloudflare
- Proxied subdomain support
- DNS record management
- Enhanced DNS record display in the Ultimate Multisite admin
The following constants must be defined in your wp-config.php file:
define('WU_CLOUDFLARE_API_KEY', 'your_api_key');
define('WU_CLOUDFLARE_ZONE_ID', 'your_zone_id');- Log in to your Cloudflare dashboard
- Go to "My Profile" (click on your email in the top-right corner)
- Select "API Tokens" from the menu
- Create a new API token with the following permissions:
- Zone.Zone: Read
- Zone.DNS: Edit
- Copy your API token
- In your Cloudflare dashboard, select the domain you want to use
- The Zone ID is visible in the "Overview" tab, in the right sidebar under "API"
- Copy the Zone ID
Add the following constants to your wp-config.php file:
define('WU_CLOUDFLARE_API_KEY', 'your_api_token');
define('WU_CLOUDFLARE_ZONE_ID', 'your_zone_id');- In your WordPress admin, go to Ultimate Multisite > Settings
- Navigate to the "Domain Mapping" tab
- Scroll down to "Host Integrations"
- Enable the Cloudflare integration
- Click "Save Changes"
When a new site is created in a subdomain multisite installation:
- The integration sends a request to Cloudflare's API to add a CNAME record for the subdomain
- The subdomain is configured to be proxied through Cloudflare by default (this can be changed with filters)
- When a site is deleted, the integration will remove the subdomain from Cloudflare
The integration enhances the DNS record display in the Ultimate Multisite admin by:
- Fetching DNS records directly from Cloudflare
- Displaying whether records are proxied or not
- Showing additional information about the DNS records
As of Cloudflare's recent updates, wildcard proxying is now available for all customers. This means that the Cloudflare integration is less critical for subdomain multisite installations than it used to be, as you can simply set up a wildcard DNS record in Cloudflare.
- Verify that your API token is correct and has the necessary permissions
- Check that your Zone ID is correct
- Ensure that your Cloudflare account has the necessary permissions
- Check the Ultimate Multisite logs for any error messages
- Verify that the subdomain is not already added to Cloudflare
- Ensure that your Cloudflare plan supports the number of DNS records you're creating
- If you don't want subdomains to be proxied, you can use the
wu_cloudflare_should_proxyfilter - Some features may not work correctly when proxied (e.g., certain WordPress admin functions)
- Consider using Cloudflare's Page Rules to bypass the cache for admin pages
- 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