bb_user_subscribe_checkbox_update

The BuddyPress bb user subscribe checkbox update hook.

Description

do_action( 'bb_user_subscribe_checkbox_update', (unknown) $post_id, (unknown) $topic_id, (unknown) $subscribe, (unknown) $check ); 

Parameters (4)

0. $post_id (unknown)
The post id.
1. $topic_id (unknown)
The topic id.
2. $subscribe (unknown)
The subscribe.
3. $check (unknown)
The check.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bb_user_subscribe_checkbox_update', $post_id, $topic_id, $subscribe, $check ); 
The following example is for adding a hook callback.
  1. // define the bb_user_subscribe_checkbox_update callback 
  2. function action_bb_user_subscribe_checkbox_update( $post_id, $topic_id, $subscribe, $check ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bb_user_subscribe_checkbox_update', 'action_bb_user_subscribe_checkbox_update', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bb_user_subscribe_checkbox_update', 'action_bb_user_subscribe_checkbox_update', 10, 4 ); 

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-posts.php  
  1. do_action( 'bb_user_subscribe_checkbox_update', $post_id, $topic_id, $subscribe, $check );