Fires at the end of the listing of activity types.


do_action( 'bp_activity_types_list_<output>', (array) $args, (string) $type, (string) $description ); 

This is a variable action hook. The actual hook to use will depend on the output type specified. Two default hooks are bp_activity_types_list_select and bp_activity_types_list_checkbox.

Parameters (3)

0. $args (array)
Array of arguments passed into function.
1. $type (string)
Activity type being rendered in the output.
2. $description (string)
Description of the activity type being rendered.


To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_activity_types_list_{$output}', $args, $type, $description ); 
The following example is for adding a hook callback.
  1. // define the bp_activity_types_list_<output> callback 
  2. function action_bp_activity_types_list_output( $args, $type, $description ) { 
  3. // make action magic happen here... 
  4. }; 
  6. // add the action 
  7. add_action( "bp_activity_types_list_{$output}", 'action_bp_activity_types_list_output', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "bp_activity_types_list_{$output}", 'action_bp_activity_types_list_output', 10, 3 ); 

Defined (1)

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

  1. do_action( 'bp_activity_types_list_' . $output, $args, $type, $description );