cmb_default_filter

The BuddyPress Profile Tabs cmb default filter hook.

Description

apply_filters( 'cmb_default_filter', (unknown) $args_default, (unknown) $args, (unknown) $this_object_type, (unknown) $this_object_type ); 

Parameters (4)

0. $args_default (unknown)
The args default.
1. $args (unknown)
The args.
2. $this_object_type (unknown)
The this object type.
3. $this_object_type (unknown)
The this object type.

Usage

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

Defined (1)

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

/admin/includes/CMBF/helpers/cmb_Meta_Box_field.php  
  1. $args['default'] = apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type );