bp_members_admin_user_metaboxes

Fires at the end of the Community Profile screen.

Description

do_action( 'bp_members_admin_user_metaboxes', (bool) $this_is_self_profile, (int) $user_id ); 

Plugins can restrict metabox to bp_moderate admins by checking if the first argument ($this->is_self_profile) is false in their callback. They can also restrict their metabox to self profile editing by setting it to true.

Parameters (2)

0. $this_is_self_profile (bool)
Whether or not it is the current user's profile.
1. $user_id (int)
Current user ID.

Usage

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

Defined (1)

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

/bp-members/classes/class-bp-members-admin.php  
  1. do_action( 'bp_members_admin_user_metaboxes', $this->is_self_profile, $user_id );