automattic / jetpack-monetize
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
Requires
- php: >=7.4
- automattic/jetpack-admin-ui: ^0.15.0
- automattic/jetpack-connection: ^9.18.3
- automattic/jetpack-feature-flags: ^0.2.1
- automattic/jetpack-plans: ^0.16.1
- automattic/jetpack-redirect: ^4.0.1
- automattic/jetpack-status: ^7.1.2
- automattic/jetpack-wp-build-polyfills: ^0.7.6
Requires (Dev)
- automattic/jetpack-changelogger: ^7.0.6
- automattic/jetpack-constants: ^4.0.1
- automattic/phpunit-select-config: ^1.0.12
- yoast/phpunit-polyfills: ^4.0.0
Suggests
- automattic/jetpack-autoloader: Allow for better interoperability with other plugins that use this package.
Provides
None
Conflicts
None
Replaces
None
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)