Editing version 4 of page APIs (the most recent revision is 8)
Use template:
None
API_Template
DevTrack_Template
Version_Template
Aneuch offers several API calls to assist plugin developers, which are documented here.
* [[APIs RegSpecialPage|RegSpecialPage]] - Registers a "special" page
* [[APIs UnregSpecialPage|UnregSpecialPage]] - Unregisters a "special" page
* [[APIs RegAdminPage|RegAdminPage]] - Registers a menu entry in the administrative menu, and associates a subroutine with its page
* [[APIs UnregAdminPage|UnregAdminPage]] - Unregisters the page and removes its entry from the administrative menu
* [[APIs RegPostAction|RegPostAction]] - Registers a new action to handle POST data
* [[APIs UnregPostAction|UnregPostAction]] - Unregisters a previously registered POST action
* [[APIs RegCommand|RegCommand]] - Registers a command (for use with the **`do=`** switch)
* [[APIs UnregCommand|UnregCommand]] - Unregisters a command
Note that while it is certainly possible to call these functions in your config.pl file, they may or may not work as expected. The only guaranteed way they will work as you might expect them to is by calling them from a plugin. See [[Script Flow]] for more information.
Basically, if you want to call Unreg* on anything that was Reg*'d in InitVars, you won't be able to accomplish this in your config.pl file (as InitConfig is run before InitVars). If you wish to unregister something that is registered in InitVars, you'll have to call the unregister function from a plugin (which gets loaded after InitVars).
This page is a template
This file is locked by 18.217.108.153 (ec2-18-217-108-153.us-east-2.compute.amazonaws.com) since Thu Apr 3 22:17:27 UTC 2025 . Lock should expire by Thu Apr 3 22:22:27 UTC 2025, and it is now Thu Apr 3 22:19:03 UTC 2025.
Upload a file
By contributing to this wiki, you acknowledge that you waive your right to claim copyright of your individual contributions. The text of this site is uncopyrighted and released to the public domain.
Show markup help Styling **bold **, //italic //, __underline __, --strikethrough--, `teletype ` Headers = Level 1 =, == Level 2 ==, === Level 3 ===, ==== Level 4 ====, ===== Level 5 ===== (ending ='s optional) Lists * Unordered List, # Ordered List, ** Level 2 unordered, ### Level 3 ordered (up to 5 levels, NO SPACES IN FRONT) Links [[Page]], [[Page|description]], [[http://link]], [[http://link|description]] Images {{image.jpg}}, {{right:image.jpg}} (right aligned), [[link|{{image.jpg}}]] (image linked to link), {{image.jpg|alt text}} Extras ---- (horizonal rule), ~~~~ (signature)