Developers
Developer documentation for the AddoCore WordPress plugins. Hooks, filters, the JavaScript API and guides to extend Addofy from your own plugin or theme, without touching its code.
Addofy
- Addofy for developers
- Quick start: your first Addofy extension
- Writing an Addofy module
- Loading your own scripts and styles in Addofy
- Settings tabs, field types and user preferences
- Visibility per role for your own items
- Compatibility adapters for plugins with their own full-page UI
- Guides and tours for your own screens
- Extending the customer screens and the order card
- Dark mode and color palettes
- Addofy CSS tokens
- The Addofy JavaScript API (window.adba)
- Palette commands with steps
- REST routes and WP-CLI commands for Addofy extensions
- Addofy on multisite: the network index and settings
- Addofy recipes
- Hook reference
- Core and modules hooks
- Settings and quick start hooks
- Visibility per role hooks
- Shell, admin bar and preferences hooks
- Lists, flow and drawer hooks
- Search and palette hooks
- Multisite hooks
- Customers and orders hooks
- Mobile hooks
- Filter panel hooks
- Content transfer hooks
- Query advisor hooks
- Background actions hooks
- Addofy API deprecations and stability promise
- Addofy hooks by version
What does the developer documentation cover?
It documents the public API of our plugins: everything marked @api in the code. Each plugin has its own section with the same structure:
- Guides: how to write a module, add a settings tab, load assets, use the JavaScript API and follow dark mode and color palettes.
- Recipes: short, copyable answers to common jobs, such as a search provider or a list table column.
- Hook reference: every public action and filter with its type, the version it arrived in, its arguments and a starting point.
- Stability: how changes are announced, what is deprecated and which hooks arrived in which version.
Where do you start?
- Quick start: your first Addofy extension: a small plugin with a module and a notice.
- Writing a module: the main building block.
- Hook reference: when you know what you are looking for.
What do you need?
Addofy needs PHP 8.1 or newer and WordPress 6.5 or newer. WooCommerce is optional: the modules for orders, customers and products only load when WooCommerce is active. Your extension should check that Addofy is active before it uses the API, so it keeps working when Addofy is switched off.
Which plugins are documented?
Addofy, the admin that makes WordPress and WooCommerce calm and clear, is the first. More plugins follow with the same structure. For installing plugins and managing licenses, see the plugin documentation.