Admin tools are advanced plugins that are intended especially for site administrators, they are accessible via the admin site administration tree menu. Ideally most of the functionality in
/admin/ directory should be moved to separate plugins in the future.
Before 2.2, tools for administrators were created as admin reports (because we did not have better pluggable place), placed directly into
- No way to disable or remove or add custom admin tools
- The official distribution should not include local plugins by definition (
- Major cleanup in
- No need to abuse admin reports
- Contrib admin tools can be distributed easier
- It is possible to remove or replace core admin tools (no hardcoded links)
How to migrate existing admin reports:
- Move all files to new
- Update all links to admin tools
- Rename/add language pack file with at least
- Update all language strings (use
report_yourplugin. Use AMOS hints in commit message
- Update all capability names
db/install.phpmigration script. Delete old settings and capabilities (see converted plugins for examples)
- Grep the plugin codebase and look for any remaining
- Update CSS selectors
Is it necessary to migrate existing admin reports?
Yes. Old admin reports directory is completely ignored.
Is it difficult to migrate admin reports?
No, it usually takes less than an hour to migrate and test one admin tool.
What is the difference between report and admin tool?
Report is a view of live or historical data, it may also contain export feature, reports usually do not modify data. Admin tools are intended mostly for administrators, they usually work only in system context.
What is the difference between admin tool and local plugin?
Local plugin is everything else, it may be intended for non-admin users. Examples of local plugins: event handlers, web service/function definitions, shared library hacks, new lang strings used in core hacks, etc.