Skip to content

interledger/web-monetization-wordpress-plugin

Repository files navigation

Web Monetization for WordPress

Web Monetization is a lightweight and extensible plugin that enables WordPress site owners and content creators to receive micro-payments using the Web Monetization. The plugin is designed to be compatible with Interledger wallets and supports flexible configuration across site, author, and content levels.

WordPress Tested Up To
License: Apache-2.0
Maintained by Interledger Foundation


✨ Features

  • ✅ Add a Web Monetization <link rel="monetization"> tag in your site <head>
  • ✅ Support for site-wide, author-specific, and post-level wallet addresses
  • ✅ Visual indicator in admin UI for wallet connection status
  • ✅ Multi-wallet mode: show all configured wallet addresses or just the top-priority one
  • ✅ Country-based wallet overrides (via optional GeoIP plugin)
  • ✅ Exclude specific users from monetization
  • ✅ Developer-friendly hooks and filters
  • ✅ Fully translatable (.pot file included)
  • ✅ Designed for performance and compatibility

🚀 Getting Started

  1. Install the plugin via the WordPress admin dashboard or upload it manually.
  2. Go to Settings → Web Monetization to configure your wallet address(es).
  3. Optionally, enable:
    • Author-level monetization
    • Per-post monetization
    • Country-specific overrides

🛠 Configuration Options

Level Description
Site-wide Default wallet for all pages
Author Each author can set their own wallet (if allowed)
Post/Page Override wallet per individual post
Country Show different wallets for visitors from specific countries (optional)

🔐 Privacy & Compliance

  • No external services are required by default.
  • Optional country targeting requires the free and GPL-compatible GeoIP Detection plugin.
  • No tracking or analytics are included.

📦 Installation

From WordPress Dashboard

  1. Go to Plugins → Add New
  2. Search for “Web Monetization”
  3. Install and activate the plugin

Manual Installation

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate via Plugins menu in WordPress

🧩 Developer Info

  • Hooks: Filters and actions available for customizing wallet logic and monetization output.
  • Extensible: Easily integrate with custom post types or external wallet services.
  • OOP-based architecture using autoloading via Composer.

Want to contribute? See CONTRIBUTING.md for guidelines.


🧠 Requirements

  • WordPress 5.8 or higher
  • PHP 7.4 or higher

📝 License

This plugin is licensed under the GPLv2 or later.

© Interledger Foundation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •