What is the Shovel Knight shaped hole in King Knight's stage for?

The hole is a secret passage. You don't press any keys to make it work, you just need to line yourself up with it fairly well and then wait a few seconds. Then you will be sent through the secret passage. I was too impatient to get it to work because I kept mashing keys and trying to re-align myself with it to let it actually trigger.