Files
plugin-example/README.md
2026-01-19 10:13:12 +07:00

1.0 KiB

Example Plugin for Mivo

Category: System Tools
Author: DyzulkDev
Version: 1.0.0

This is a developer example demonstrating how to create plugins for the Mivo Hotspot Manager. It showcases the use of Hooks and Routers to extend core functionality.

Features

  • Router Hook: Registers a custom page at /plugin-test.
  • Head Hook: Injects custom CSS (green border) into the page head.
  • Footer Hook: Injects a custom message into the page footer.

Installation

  1. Download the plugin ZIP file.
  2. Go to Mivo > Settings > Plugins.
  3. Click Upload Plugin and select the ZIP file.
  4. The plugin will immediately activate.

Verification

  • Visual Check: You should see a green top border on all pages.
  • Footer Check: A message "Plugin System is Working! 🚀" appears in the footer.
  • Route Check: Visit /plugin-test to see the custom page.

For Developers

Check the plugin.php file source code to understand how Hooks::addAction works for router_init, mivo_head, and mivo_footer.