bp_get_forum_topic_new_reply_link

Filters the permalink for the New Reply button at the top of forum topics.

Description

apply_filters( 'bp_get_forum_topic_new_reply_link', (unknown) $link_post_topic_reply, (unknown) $link ); 

Parameters (2)

0. $link_post_topic_reply (unknown)
The link post topic reply.
1. $link (unknown)
The link.

Usage

To run the hook, copy the example below.
  1. $link_post_topic_reply = apply_filters( 'bp_get_forum_topic_new_reply_link', $link_post_topic_reply, $link ); 
  2.  
  3. if ( !empty( $link_post_topic_reply ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_get_forum_topic_new_reply_link callback 
  2. function filter_bp_get_forum_topic_new_reply_link( $link_post_topic_reply, $link ) { 
  3. // make filter magic happen here... 
  4. return $link_post_topic_reply
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_get_forum_topic_new_reply_link', 'filter_bp_get_forum_topic_new_reply_link', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_get_forum_topic_new_reply_link', 'filter_bp_get_forum_topic_new_reply_link', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/bp-forums/bp-forums-template.php  
  1. return apply_filters( 'bp_get_forum_topic_new_reply_link', $link . '#post-topic-reply', $link );