Re: bbPress 2.0 – Updates
Is there a way of utilising the hook transition_post_status only when it’s in reference to a topic or reply? Or is there a function for this already?
I’m looking to only call a function when a user posts a topic or reply, possibly when a post gets spammed or trashed.
You can use the hooks bbp_trashed_topic, bbp_trashed_reply, bbp_spammed_topic, bbp_spammed_reply. All those supply you with the reply or topic id.