Search by

automattic / jetpack-monetize

automattic

The Monetize dashboard: payments, paid subscribers and ads in wp-admin.

Package info

github.com/Automattic/jetpack-monetize

Type:jetpack-library

pkg:composer/automattic/jetpack-monetize

Statistics

Installs: 107

Dependents: 2

Suggesters: 0

Stars: 0

v0.3.0 2026-11-23 16:15 UTC

This package is auto-updated.

Last update: 2026-11-27 19:02:28 UTC


README

The Monetize dashboard: payments, paid subscribers and ads in wp-admin.

The page is a @wordpress/build route in routes/dashboard, rendered under the jetpack-monetize menu slug. The Jetpack plugin loads it from its monetize module:

\Automattic\Jetpack\Monetize\Dashboard::init();

WoA loads the page from the monetize module and adds its sidebar item, as a self-hosted site does, so admins who aren't WordPress.com users can reach it too. Simple has no modules to load, so jetpack-mu-wpcom calls init() there itself, and init() adds no sidebar item there: jetpack-mu-wpcom builds the Jetpack menu and calls Dashboard::add_wp_admin_submenu() once the page is loaded. That call does nothing where the item already exists.

The dashboard is behind the jetpack-monetize-dashboard feature flag while it is built. Hosts register it with Dashboard::register_feature_flag() and check it with Dashboard::is_enabled().

Using this package in your WordPress plugin

If you plan on using this package in your WordPress plugin, we would recommend that you use Jetpack Autoloader as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.

Security

Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.

License

monetize is licensed under GNU General Public License v2 (or later)