Description
The “mainwp_getextensions” filter is used to add your extension to MainWP.
Usage
Where ‘get_this_extension’ is the function MainWP should call when the $extensions array is retrieved. Note that the filter function must return an array of extensions after it is finished processing, or no extensions will be displayed, and other plugins also filtering the $extensions array may generate errors.
plugin_get_extension should be unique function name. It cannot match any other function name already declared.
Examples
Both examples use the following two actions to add the settings page header and footer: mainwp-pageheader-extensions and mainwp-pagefooter-extensions
Add an extension without authentication
The following example adds your extension to MainWP.
Add an extension with authentication
The following example adds your extension to MainWP.
Add an extension with a custom name and icon
The following example adds your extension to MainWP.