Can we add hook in operations/mediawiki-config to achieve more flexible configuration?
Hook in operations/mediawiki-config


Hi, this question describes a solution without first defining a problem to solve (“flexibility” is not a use case in itself).
The best solution depends on a description of a problem and might be different from your proposed solution…
Also see https://secure.phabricator.com/book/phabcontrib/article/describing_problems/ (which is not about Wikimedia but is generally a good guideline, in my opinion).
Thanks!

Oh, it may be a bit of a problem with my wording. What I mean is, can allowed to add a hook to the configuration file in operations/mediawiki-config repo instead of specifically adding an extension to implement a requirement? (It looks like an inquiry about the WMF deploy policy)

In fact, zhwiki community is discussing whether to prohibit anonymous users from emptying their user talk pages. If the proposal passes, it may be better to implement this requirement with a hook.

As you can see, it does contain a couple hooks already. For that purpose, you are probably better off using AbuseFilter though.

You are right, AF would be better.