Mybb: Hooks to allow plugins to extend custom moderation tools

Created on 10 Jun 2020  路  1Comment  路  Source: mybb/mybb

Plugins are currently not able to extend custom moderation tools to provide additional options because of a lack of useful hooks:

There are no hooks in inc/class_custommoderation.php whereas there are in inc/class_moderation.php.

The hooks that are in admin/modules/config/mod_tools.php aren't quite sufficient for adding extra options.

Although a very nasty solution is to use the admin_form_output_submit_wrapper hook and filter on the current modules loaded to add extra form fields but that doesn't resolve the need for hooks in the custommoderation class.

1.8 review-needed enhancement

Most helpful comment

Note: I've set this as a target for 1.8.24 rather than 1.8.23, so please don't merge any associated PRs until 1.8.23 is released.

>All comments

Note: I've set this as a target for 1.8.24 rather than 1.8.23, so please don't merge any associated PRs until 1.8.23 is released.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RikoDEV picture RikoDEV  路  3Comments

Ben-MyBB picture Ben-MyBB  路  5Comments

woostarUK picture woostarUK  路  4Comments

LogicPlague picture LogicPlague  路  5Comments

WildcardSearch picture WildcardSearch  路  6Comments