Self-Hosted WordPress Connection Guide

Overview

This guide is for WordPress sites that you or your hosting provider run: the WordPress software from WordPress.org, on your own server or a managed WordPress host. Maton connects with an Application Password, a separate password WordPress creates for apps, and calls your site's REST API as your user.

If your site is hosted on WordPress.com, you don't need this guide: choose OAuth 2 (WordPress.com) when you connect WordPress and sign in with your WordPress.com account.

What You'll Need

  • WordPress 5.6 or later, reachable on the public internet over HTTPS. Maton doesn't connect to private or local addresses.
  • A WordPress user whose role covers what Maton should do: an Editor can manage posts, pages and media, while settings, plugins and users need an Administrator.
  • Application Passwords turned on. They are by default, but some security plugins and hosts turn them off.

Step 1: Find Your Site Domain

In the WordPress admin, open Settings > General. Your site domain is the part of the Site Address (URL) between https:// and the next /, here blog.example.com.

The WordPress Address and Site Address under Settings > General

On a multisite network where sites live in subdirectories, such as example.com/site2, the domain is example.com and the site path is site2. Sites on their own subdomains, such as site2.example.com, need only the domain.

Step 2: Create an Application Password

  1. Sign in as the user Maton should act as and open Users > Profile. Scroll to Application Passwords, enter a name you'll recognize, such as Maton, and click "Add Application Password".
  2. Naming a new Application Password on the Profile page
  3. Copy the new password. WordPress shows it only once; the spaces in it are fine to keep.
  4. The new Application Password, shown once

Step 3: Connect WordPress

  1. Go to the Connections page, click "Add Connection", find WordPress, click "+ Connect" and choose Basic (Self-Hosted). With the Maton CLI, run maton connection create wordpress --method BASIC instead; it opens the same form.
  2. Enter the Site domain from Step 1 (without https://), the Site path if your site is in a multisite subdirectory, your WordPress Username (or the account's email address) and the Application Password from Step 2, then click "Connect".
  3. The self-hosted WordPress connect form
  4. Maton checks the password by reading your WordPress user. When it's accepted you'll see "Success", and the connection appears as active on the Connections page with your site and username.

Troubleshooting

  • There's no Application Passwords section: the site isn't served over HTTPS, or a security plugin or your host has turned Application Passwords off. Turn them back on in that plugin's settings or ask your host.
  • The password is rejected: check the username and that the Application Password hasn't been revoked. If WordPress's Tools > Site Health reports that the Authorization header is missing, your server drops it before WordPress sees it and your host needs to pass it through.
  • The site domain isn't accepted: enter only the domain, such as blog.example.com, without https://, a path or a port. Maton refuses IP addresses and names that point to private networks.
  • Calls are denied: your WordPress role doesn't allow that action. Use a user with a role that does, such as Administrator for settings and plugins.

Keeping Your Site Safe

An Application Password can do everything its user can through the REST API, so consider a dedicated user with the lowest role Maton needs. You can revoke the password at any time under Users > Profile > Application Passwords; the Maton connection stops working once you do. Deleting the connection in Maton removes the stored password.