add vsite_register.api.php for hook example #2675