bp_setup_admin_bar

The WordPress Core bp setup admin bar hook.

Description

add_action( 'bp_setup_admin_bar', (string) $bp_registration_options_admin_bar_add, (int) $int ); 

Parameters (2)

0. $bp_registration_options_admin_bar_add (string) => 'bp_registration_options_admin_bar_add'
The bp registration options admin bar add.
1. $int (int) => 300
The int.

Usage

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

Defined (1)

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

/includes/core.php  
  1. add_action( 'bp_setup_admin_bar', 'bp_registration_options_admin_bar_add', 300 );