Create custom troubleshoot plugin - gopalkildoliya/wp-troubleshooter GitHub Wiki

Creating custom plugin

Creating and adding your custom troubleshoot plugin to WordPress Troubleshooter is very easy.

All the plugins are placed in plugins/ directory in various folders called levels. Like if your developing a plugin related to users then you can place it in to plugins/user/ directory.

Your plugin file must contain a meta info block, respond function called and its callback functions.

Meta info block

This block contains basic information about your plugin like name(label), file name, default link etc. A simple meta info block is like following-

/**
* Meta Info
* FILE_NAME: change_debug_mode.php
* LABEL: Change WordPress Debug Mode
* LINK_MAIN: /debug/change_debug_mode
*
*/

Here

FILE_NAME is the name of your plugin file.

LABEL is the name of your plugin. It will be shown where selecting troubleshooting options.

LINK_MAIN is the main link or entry link to your plugin. It should followed by level or folder name.