bpbbpst_new_support_widget_button

The Buddy-bbPress Support Topic bpbbpst new support widget button hook.

Description

apply_filters( 'bpbbpst_new_support_widget_button', (unknown) $html_link, (unknown) $forum_post_form_link, (unknown) $button_caption ); 

Parameters (3)

0. $html_link (unknown)
The html link.
1. $forum_post_form_link (unknown)
The forum post form link.
2. $button_caption (unknown)
The button caption.

Usage

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

Defined (1)

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

/includes/widgets.php  
  1. $a_link = apply_filters( 'bpbbpst_new_support_widget_button', $html_link, $forum_post_form_link, $button_caption );