wcv_country_select2

Description

apply_filters( 'wcv_country_select2', array( $attributes ) )

Parameters (1) (array)

Sample

array(
  'id'          => $field[ 'id' ], 
  'label'         => $field[ 'label' ], 
  'value'         => $field[ 'value' ], 
  'class'         => 'select2'. $field[ 'class' ], 
  'options'         => $field[ 'options' ], 
  'wrapper_start'     => $field[ 'wrapper_start' ], 
  'wrapper_end'     => $field[ 'wrapper_end' ], 
)

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_country_select2', $param );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_country_select2 callback
function my_filter_function( $param ) {
  // do your thing here :-) ... 

  return $array_val; 
}
add_filter( 'wcv_country_select2', 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcv_country_select2', 'my_filter_function', 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wcvendors-pro/public/class-wcvendors-pro-form-helper.php line 791
    WCVendors_Pro_Form_Helper::select( apply_filters( 'wcv_country_select2', array(

filters

Updated on January 9, 2017

Was this article helpful?