dynamic space bar menu

I was looking for instructions on the web on how to customize the dynamic space bar menu. I can’t find any. Can you guys point me where I could find one?

it’s hardcoded in C, you can’t customize it with Python (other than registering Operators which will show up in it)