cmb_save_<object_type>_fields

The BuddyPress Profile Tabs cmb save object type fields hook.

Description

do_action( 'cmb_save_<object_type>_fields', (unknown) $object_id, (unknown) $meta_box_id, (unknown) $self_updated, (unknown) $meta_box ); 

Parameters (4)

0. $object_id (unknown)
The object id.
1. $meta_box_id (unknown)
The meta box id.
2. $self_updated (unknown) => self::$updated
The self updated.
3. $meta_box (unknown)
The meta box.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'cmb_save_{$object_type}_fields', $object_id, $meta_box_id, $self_updated, $meta_box ); 
The following example is for adding a hook callback.
  1. // define the cmb_save_<object_type>_fields callback 
  2. function action_cmb_save_object_type_fields( $object_id, $meta_box_id, $self_updated, $meta_box ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "cmb_save_{$object_type}_fields", 'action_cmb_save_object_type_fields', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "cmb_save_{$object_type}_fields", 'action_cmb_save_object_type_fields', 10, 4 ); 

Defined (1)

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

/admin/includes/CMBF/init.php  
  1. do_action( "cmb_save_{$object_type}_fields", $object_id, $meta_box['id'], self::$updated, $meta_box );