cmb_override_option_save_<option_key>

The BuddyPress Profile Tabs cmb override option save key hook.

Description

apply_filters( 'cmb_override_option_save_<option_key>', (string) $cmb_no_override_option_save, (unknown) $to_save ); 

Parameters (2)

0. $cmb_no_override_option_save (string) => 'cmb_no_override_option_save'
The cmb no override option save.
1. $to_save (unknown)
The to save.

Usage

To run the hook, copy the example below.
  1. $cmb_no_override_option_save = apply_filters( 'cmb_override_option_save_{$option_key}', $cmb_no_override_option_save, $to_save ); 
  2.  
  3. if ( !empty( $cmb_no_override_option_save ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the cmb_override_option_save_<option_key> callback 
  2. function filter_cmb_override_option_save_option_key( $cmb_no_override_option_save, $to_save ) { 
  3. // make filter magic happen here... 
  4. return $cmb_no_override_option_save
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "cmb_override_option_save_{$option_key}", 'filter_cmb_override_option_save_option_key', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "cmb_override_option_save_{$option_key}", 'filter_cmb_override_option_save_option_key', 10, 2 ); 

Defined (1)

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

/admin/includes/CMBF/init.php  
  1. $test_save = apply_filters( "cmb_override_option_save_$option_key", 'cmb_no_override_option_save', $to_save );