cmb_override_meta_value

The BuddyPress Profile Tabs cmb override meta value hook.

Description

apply_filters( 'cmb_override_meta_value', (string) $cmb_no_override_val, (unknown) $this_object_id, (unknown) $this_args, (unknown) $this_object_type, (unknown) $instance ); 

Parameters (5)

0. $cmb_no_override_val (string) => 'cmb_no_override_val'
The cmb no override val.
1. $this_object_id (unknown)
The this object id.
2. $this_args (unknown)
The this args.
3. $this_object_type (unknown)
The this object type.
4. $instance (unknown)
The instance.

Usage

To run the hook, copy the example below.
  1. $cmb_no_override_val = apply_filters( 'cmb_override_meta_value', $cmb_no_override_val, $this_object_id, $this_args, $this_object_type, $instance ); 
  2.  
  3. if ( !empty( $cmb_no_override_val ) ) { 
  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_meta_value callback 
  2. function filter_cmb_override_meta_value( $cmb_no_override_val, $this_object_id, $this_args, $this_object_type, $instance ) { 
  3. // make filter magic happen here... 
  4. return $cmb_no_override_val
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'cmb_override_meta_value', 'filter_cmb_override_meta_value', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'cmb_override_meta_value', 'filter_cmb_override_meta_value', 10, 5 ); 

Defined (1)

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

/admin/includes/CMBF/helpers/cmb_Meta_Box_field.php  
  1. $this->value = apply_filters( 'cmb_override_meta_value', 'cmb_no_override_val', $this->object_id, $this->args(), $this->object_type, $this );