Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get subsciber link for specific topic?


  • gerryj
    Participant

    @gerryj

    Hello,

    is there any way to just get the subscriber link of a topic?
    I am currently building a custom topic overview and I want people to be able to subscribe to topics directly from the overview.

    Something like “$subscribe_link = bbp_get_user_subscribe_link($topic_id);” would be perfect.
    I already looked online and found this: https://www.buddyboss.com/resources/reference/functions/bbp_get_user_subscribe_link/
    But I tried this function and it never returns anything for me.
    Maybe I am misunderstanding the purpose of the function or just using it incorrectly.
    Any help would be appreciated.

    Regards
    Gerry Zeller

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

  • Robin W
    Moderator

    @robin-w

    untested but

    
    bbp_get_topic_subscription_link (array( 'object_id'  => $topic_id) ))

    gerryj
    Participant

    @gerryj

    Hello Robin W,
    thank you. The function worked like that.
    Now I feel really stupid because I’ve been stuck with it for so long.

    Regards
    Gerry Zeller


    Robin W
    Moderator

    @robin-w

    we’ve all been there 🙂 🙂

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