added admin notice into function parameters