bp_docs_before_doc_unlink_from_group

The BuddyPress Docs bp docs before doc unlink from group hook.

Description

do_action( 'bp_docs_before_doc_unlink_from_group', (unknown) $doc_id, (unknown) $group_id, (unknown) $term ); 

Parameters (3)

0. $doc_id (unknown)
The doc id.
1. $group_id (unknown)
The group id.
2. $term (unknown)
The term.

Usage

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

Defined (1)

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

/includes/integration-groups.php  
  1. do_action( 'bp_docs_before_doc_unlink_from_group', $doc_id, $group_id, $term );