How to programmatically add a custom item at the beginning of the frontend main menu?

See also: