I want to integrate WP and Punbb. I thought that this piece of code helps me. But can you help me to understand where that code goes.

I'm a bit lost here. Please, tell me where that piece of code goes.