Manual:Hooks/AutopromoteCondition

Details
This hook only runs if the condition type does not match any of those already defined as possible conditions.
 * $type: condition type
 * $args: arguments
 * $user: user
 * &$result: result of checking autopromote condition. Defaults to null; if left as null, will throw an exception ("unrecognized condition [$type] for autopromotion")