Skip to content

Built-in Hooks

If you are already familiar with SMF hooks, you will easily be able to set up interaction between the modification you need and Optimus’s own hooks:

By using these hooks in your modification, you can place an addon for integration with Optimus anywhere or not create it at all.

Parameters: &$addons

Adding the identifier of a custom addon to the general list of ā€œactiveā€ addons.

Parameters: &$config_vars

Adding your options to the ā€œGeneral Settingsā€ tab.

Preparing your basic options before saving.

Parameters: &$config_vars

Adding your options to the ā€œMicrodataā€ tab.

Preparing your extra options before saving.

Parameters: &$meta_tags

Adding your own metatags to the ā€œMeta-tagsā€ tab.

Parameters: &$config_vars

Adding your sitemap options to the ā€œSitemapā€ tab.

Preparing your sitemap options before saving.

Parameters: &$this->customRules, $this->urlPath

Adding your rules to the robots.txt generator.

Parameters: &$this->links

Adding your links to the sitemap.

Parameters: &$replacements

Ability to configure replacement rules in the function for obtaining the theme description teaser.