For the lard with apple and onion, heat some lard in a small pan and sauté the onion and apple pieces in it.
When the apple pieces fall apart, remove the pan from the heat and let everything cool down a bit. Then mix everything together and pour into a suitable container.
You can, but you don’t have to, salt the lard.