日本語

Configuration

Melmium is configured by defining constants in wp-config.php. Below is a complete list of configurable constants.

Configuration Constants

Constant Description Default
MLM_ADMIN_EMAIL_FROM Sender email address WordPress admin email
MLM_ADMIN_EMAIL_TO Admin notification recipient WordPress admin email
MLM_ADMIN_EMAIL_BCC Admin notification BCC Empty string
MLM_AUTH_PAGE_TITLE Auth page title 会員登録・ログイン・パスワードリセット (by Melmium)
MLM_AUTH_PAGE_SLUG Auth page slug auth
MLM_REDIRECT_AFTER_LOGIN Redirect URL after login /
MLM_RECAPTCHA_ENABLED Enable/disable reCAPTCHA false
MLM_GC_RECAPTCHA_ID reCAPTCHA site key Empty string
MLM_GC_PROJECT_ID Google Cloud project ID Empty string
MLM_GC_API_KEY Google Cloud API key Empty string

Example Configuration

Add the following to your wp-config.php:

// Email settings
define( 'MLM_ADMIN_EMAIL_FROM', 'noreply@example.com' );
define( 'MLM_ADMIN_EMAIL_TO', 'admin@example.com' );

// Redirect after login
define( 'MLM_REDIRECT_AFTER_LOGIN', '/mypage' );

reCAPTCHA Setup

  1. Enable reCAPTCHA Enterprise in Google Cloud Console.
  2. Create a site key (score-based key recommended).
  3. Obtain an API key.
  4. Add the following constants to wp-config.php:
// reCAPTCHA Enterprise
define( 'MLM_RECAPTCHA_ENABLED', true );
define( 'MLM_GC_RECAPTCHA_ID', 'your-site-key' );
define( 'MLM_GC_PROJECT_ID', 'your-project-id' );
define( 'MLM_GC_API_KEY', 'your-api-key' );