Minced onion can be substituted, but I would recommend letting the lemon basil butter refrigerate longer so the minced onion has opportunity to absorb moisture.