cmb2_taxonomy_select_default_value

Default (option-none) taxonomy-select value.

Description

apply_filters( 'cmb2_taxonomy_select_default_value', (string) $var ); 

Parameters (1)

0. $var (string) => ''
Default (option-none) taxonomy-select value.

Usage

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

Defined (2)

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

/vendor/wordimpress/maps-builder-core/includes/libraries/metabox/includes/types/CMB2_Type_Taxonomy_Select.php  
  1. $option_none_value = apply_filters( 'cmb2_taxonomy_select_default_value', '' ); 
/includes/libraries/metabox/includes/CMB2_Types.php  
  1. $option_none_value = apply_filters( 'cmb2_taxonomy_select_default_value', '' );