bbp_get_topic_subscription_link( $args = array() )

Get the forum subscription link

Description

A custom wrapper for bbp_get_user_subscribe_link()

Source

File: bp-forums/topics/template.php

1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
function bbp_get_topic_subscription_link( $args = array() ) {
 
    // No link
    $retval = false;
 
    // Parse the arguments
    $r = bbp_parse_args( $args, array(
        'user_id'     => 0,
        'topic_id'    => 0,
        'before'      => ' | ',
        'after'       => '',
        'subscribe'   => __( 'Subscribe',   'buddyboss' ),
        'unsubscribe' => __( 'Unsubscribe', 'buddyboss' )
    ), 'get_forum_subscribe_link' );
 
    // Get the link
    $retval = bbp_get_user_subscribe_link( $r );
 
    return apply_filters( 'bbp_get_topic_subscribe_link', $retval, $r );
}

Changelog

Changelog
Version Description
bbPress (r5156) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.