Adding taxonomy to replies
I want to add a taxonomy (which I’ve already created) to replies which are in all forums except one. I’m struggling to find the exact functions that I need to use for this though, e.g. to check the forum name (I don’t want to rely on the forum ID in case that is changed in a reinstall) and to set the taxonomy. I can’t find a list of all functions in the documentation.
I’m going to be creating a child theme and I’m pretty sure that it’s bbp_insert_reply() that I need to modify. I’ve found that ok. But it’s what functions to call to do the simple test and set that I want to do that I’m struggling with, even searching the function files of other parts of bbPress. So it seems like a simple case of testing the forum name and then setting the taxonomy if the test passes, but I am unsure of the two functions to use.
Can anyone point me in the right direction, please? Thanks in advance.
- You must be logged in to reply to this topic.