bp_admin_init

The WordPress Core bp admin init hook.

Description

add_action( 'bp_admin_init', (string) $bp_setup_updater, (int) $int ); 

Parameters (2)

0. $bp_setup_updater (string) => 'bp_setup_updater'
The bp setup updater.
1. $int (int) => 1000
The int.

Usage

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

Defined (10)

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

/bp-core/admin/bp-core-admin-actions.php  
  1. add_action( 'bp_admin_init', 'bp_setup_updater', 1000 ); 
  1. add_action( 'bp_admin_init', 'bp_core_activation_notice', 1010 ); 
  1. add_action( 'bp_admin_init', 'bp_register_importers' ); 
  1. add_action( 'bp_admin_init', 'bp_register_admin_style' ); 
/bp-core/admin/bp-core-admin-components.php  
  1. add_action( 'bp_admin_init', 'bp_core_admin_components_settings_handler' ); 
/bp-core/admin/bp-core-admin-actions.php  
  1. add_action( 'bp_admin_init', 'bp_register_admin_settings' ); 
  1. add_action( 'bp_admin_init', 'bp_do_activation_redirect', 1 ); 
  1. do_action( 'bp_admin_init' ); 
/bp-core/admin/bp-core-admin-settings.php  
  1. add_action( 'bp_admin_init', 'bp_core_admin_settings_save', 100 ); 
/bp-core/admin/bp-core-admin-slugs.php  
  1. add_action( 'bp_admin_init', 'bp_core_admin_slugs_setup_handler' );