cmb_types_esc_<type>

The BuddyPress Profile Tabs cmb types esc type hook.

Description

apply_filters( 'cmb_types_esc_<type>', (null) $null, (unknown) $meta_value, (unknown) $this_args, (unknown) $instance ); 

Parameters (4)

0. $null (null) => null
The null.
1. $meta_value (unknown)
The meta value.
2. $this_args (unknown)
The this args.
3. $instance (unknown)
The instance.

Usage

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

Defined (1)

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

/admin/includes/CMBF/helpers/cmb_Meta_Box_field.php  
  1. $esc = apply_filters( 'cmb_types_esc_'. $this->type(), null, $meta_value, $this->args(), $this );