Skip to content

Installation

  1. Go to Plugins > Add New.
  2. Click Upload Plugin and choose the plugin zip file.
  3. Click Install Now, then Activate.
  1. Extract the plugin zip.
  2. Upload the plugin folder to /wp-content/plugins/.
  3. Activate it from the Plugins screen.
Terminal window
wp plugin install restrict-email-domain-wordpress.zip --activate

On activation the plugin:

  • Adds the redw_settings option with sensible defaults (blacklist mode, logging on, real-time validation on, 30-day log retention).
  • Creates the log table {prefix}redw_logs.
  • Stores the installed version in the redw_version option.
  • Schedules a daily cron event (redw_cleanup_logs) to remove old log rows.
  1. Go to Settings > Email Domain Restriction.
  2. Open the License tab.
  3. Enter your license key and activate it.

An active license enables automatic updates and support.

  • Deactivating clears the scheduled cleanup cron. Settings and logs are kept.
  • Deleting the plugin runs the uninstall routine. It removes the log table, plugin options (redw_settings, redw_license_key, redw_license_status, redw_license_data, redw_version), and the cron event only when Delete all plugin data when uninstalling is enabled under Settings > Advanced. If that option is off, your data is preserved on delete. On multisite, the same cleanup runs for each site in the network.

Table: {prefix}redw_logs

Column Type Description
id mediumint(9) Primary key
email varchar(100) Blocked email address
domain varchar(100) Email domain
source varchar(50) Registration source that triggered the block
ip_address varchar(45) Visitor IP address
user_agent text Browser user agent
created_at datetime Timestamp

Indexed columns: email, domain, source, created_at.