Skip to content

WPML

Recipe for managing WPML (WordPress Multilingual) and its add-ons.

Configuration

Instructions

A placeholder provides step-by-step instructions:

  1. Log in to https://wpml.org/
  2. Go to downloads: https://wpml.org/account/downloads/
  3. Copy a download link to find your user_id and license key from the URL pattern

Extension

  • Label: Extension
  • Required: Yes
  • Type: Select (non-native, dynamic)
  • Note: Automatically populated with available WPML products

Source URL

  • Label: Source URL
  • Required: Yes
  • Type: URL
  • Placeholder: https://example.com
  • Helper Text: The URL of the WordPress site where the license is active. The site key should be active for this URL.

User ID

  • Required: Yes
  • Type: Secret

License Key

  • Required: Yes
  • Type: Secret

Site Key

  • Required: Yes
  • Type: Secret

Features

How to Obtain License Information

  1. Log in to your WPML account at https://wpml.org/
  2. Navigate to your downloads page
  3. Copy any download link - it will look like:
    https://wpml.org/?download=10420399&user_id=XXXXX&subscription_key=YYYYY&t=1730103633&version=3.1.3
  4. Extract:
    • user_id: The number after user_id=
    • subscription_key: The key after subscription_key= (this is your license_key)
  5. The site_key is obtained through the WPML site registration process

Notes

  • Uses the WPML API at https://api.wpml.org/
  • Fetches product list from CloudFront CDN: http://d2salfytceyqoe.cloudfront.net/wpml33-products.json
  • Validates site keys via site_key_validation action
  • Checks subscription status: 1 (active) or 4 (no expiration)
  • Inactive statuses: 0 (inactive), 2 (expired), 3 (inactive-upgraded)
  • Products list is cached for 6 hours
  • Sitepress Multilingual CMS is always listed first
  • Download URLs are constructed with user_id and subscription_key