Skip to:

Get parent forum id upon new reply submit

  • johnmontfx


    Two part question here…would love any suggestions or insight. I’m working on coding some custom functions to enhance bbedit functionality.

    Part 1:

    I would like to add some post meta to a new reply. What would be the appropriate hook/action location in which to do this? I can get the postid at this point and add postmeta, but not sure where to hook into things.

    Part 2:

    At the location in Part 1, how would I go about getting the parent forum id? It seems as though the reply form has the topic postid…so I’ve got that. But how do I find the parent forum?

    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)

  • Robin W


    Part 1

    The form is held in


    you’ll see several do_action hooks you could use, or indeed you could amend this template and save it in your theme as a new version.

    and bbpress will use this instead.

    Most of the template used in bbpress are held in

    bbpress/templates/default/bbpress so hunt around in there for topic forms, profiles etc.

    Part 2

    ` $forum_id = bbp_get_reply_forum_id($post_id);

    Robin W


    You’re welcome !

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar