Download the PHP package acrossai-co/addons-page without Composer
On this page you can find all versions of the php package acrossai-co/addons-page. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acrossai-co/addons-page
More information about acrossai-co/addons-page
Files in acrossai-co/addons-page
Package addons-page
Short Description Reusable WordPress Add-ons page with free and paid add-ons support via Freemius.
License GPL-2.0-or-later
Informations about the package addons-page
AcrossAI Add-ons Page
A reusable Composer package that adds a fully working Add-ons page inside WP Admin for any WordPress plugin.
Requirements
- PHP 8.1+
- WordPress 6.0+
automattic/jetpack-autoloader: ^5.0in your plugin'scomposer.json
Installation
Load the autoloader in your plugin (jetpack-autoloader generates vendor/autoload_packages.php):
Integration
Register a free product in your Freemius dashboard (WordPress Plugin, Analytics only, free plan ON) and grab its Product ID and Public Key.
Then call the constructor anywhere after your plugin's admin menu is registered (e.g. inside a plugins_loaded callback or define_admin_hooks()):
Each plugin gets its own Freemius product so activations and analytics are tracked separately per plugin in your dashboard.
The package handles:
- Registering the Add-ons submenu under your parent menu slug
- Rendering the add-ons grid (free + paid)
- Installing free add-ons silently (WordPress.org API or GitHub ZIP)
- Paid add-on checkout via Freemius JS popup
- Opt-in / "Login & Connect" flow
- Shared opt-in: if the user opted in via another plugin using this package, the banner is already hidden
Upgrading jetpack-autoloader from v3
If your plugin currently has "automattic/jetpack-autoloader": "^3.0", bump it to ^5.0:
Then run:
Your existing vendor/autoload_packages.php bootstrap call continues to work unchanged.
See docs/upgrade-notes.md for the full migration guide.
readme.txt sections (for wordpress.org submissions)
Copy the blocks from docs/readme-template.txt into your plugin's readme.txt.
These sections are required by wordpress.org:
== Installation ==== External Services ==== Privacy Policy ==
Known limitations
- Multisite: not tested or supported in v1. Works on per-site dashboards but network-activated behaviour is undefined.
- Uninstall edge case: if you have two plugins using this package and one is uninstalled (not just deactivated) while the other is active, Freemius may clear shared opt-in state. Recovery: the user clicks "Login / Connect" on the remaining plugin's Add-ons page.
- Non-plugin contexts: instantiating outside a WordPress plugin (theme, mu-plugin, CLI) throws
\RuntimeException.
License
GPL-2.0-or-later — see LICENSE.txt.
All versions of addons-page with dependencies
automattic/jetpack-autoloader Version ^5.0
freemius/wordpress-sdk Version ^2.0