Once butter is softened, spices, herbs, or other flavoring agents can be mixed into it, producing what is called a compound butter or composite butter (sometimes also called composed butter).
Butter fills several roles in baking, where it is used in a similar manner as other solid fats like lard, suet, or shortening, but has a flavor that may better complement sweet baked goods.