Habari\AjaxHandler::register_auth_ajax PHP Method

register_auth_ajax() public static method

Register a lambda/closure as an auth_ajax dispatch function
public static register_auth_ajax ( string $name, callable $fn )
$name string The context of the ajax URL
$fn callable The function to dispatch to
    public static function register_auth_ajax($name, $fn)
    {
        Plugins::register($fn, 'action', 'auth_ajax_' . $name);
    }