The header and footer are advanced features in the post processor menu, it is expected that you have some experience in G-code so you can enter commands.
Say you want to automatically enable flood coolant, you would enter M8 in the header (on) and M9 in the footer (off). It's the same as using the custom buttons.