Skip to content

Conversation

@superdav42
Copy link
Collaborator

Summary

  • Adds new Plesk hosting provider integration for automatic domain mapping
  • Uses Plesk REST API v2 CLI gateway to manage site aliases (site_alias/call) and subdomains (subdomain/call)
  • Supports both API key (X-API-Key header) and HTTP Basic Auth
  • Handles www subdomain creation via Domain_Manager::should_create_www_subdomain()
  • Includes AutoSSL support flag for Plesk's SSL It! / Let's Encrypt extension

Files

  • inc/integrations/providers/plesk/class-plesk-integration.php — Provider with credentials, connection test, and API request method
  • inc/integrations/providers/plesk/class-plesk-domain-mapping.php — Domain mapping capability (add/remove domain aliases and subdomains)
  • assets/img/hosts/plesk.svg — Plesk logo for the integrations settings page
  • inc/integrations/class-integration-registry.php — Registration of Plesk provider and capability

Test plan

  • Enable Plesk integration in WP Admin > Settings > Integrations
  • Verify wizard form renders all credential fields (host, port, API key, username, password, base domain)
  • Test connection with valid Plesk API credentials
  • Map a domain and verify site alias is created in Plesk
  • Remove a mapped domain and verify alias is deleted
  • Verify www alias is created/removed when configured
  • On subdomain installs, verify subdomain creation via CLI gateway
  • Full PHPUnit suite passes (2175 tests, 0 failures)

🤖 Generated with Claude Code

Adds a new Plesk provider that uses the REST API v2 CLI gateway
to manage site aliases and subdomains automatically when domains
are mapped or removed. Supports API key and Basic Auth, www alias
handling, and AutoSSL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

🔨 Build Complete - Ready for Testing!

📦 Download Build Artifact (Recommended)

Download the zip build, upload to WordPress and test:

🌐 Test in WordPress Playground (Very Experimental)

Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.

🚀 Launch in Playground

Login credentials: admin / password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant