-
Notifications
You must be signed in to change notification settings - Fork 7
Hooks
RedDragonWebDesign edited this page Sep 6, 2020
·
3 revisions
Hooks are used to get a function to run at a certain spot in the code.
Hooks are mainly used by plugins and themes. For functions used in core, just inline those.
Code for these is in classes/bthooks.php
public function addHook($hookName, $function, $args = "") { }
public function run($hookName) { }
- breadcrumb
- console_forms
- display-member-app-components
- form_richtexteditor
- head
- menu_item
- newspost_show
- profile_sections
- search_results_display
- search_results_init
- search_results_query
- twitch-plugin-display-card
- worldclock-display
"console-".$modsAddMenusCID
"console-".$modsManageMenusCID
"donate_form-".$_GET['campaign_id']
"pluginsettings-".$pluginInfo['filepath']
$this->formName