wcv_shipping_default_options

Description

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

Parameters (1) (array)

Sample

array( 
  'product_handling_fee'      => '', 
  'shipping_policy'         => '', 
  'return_policy'         => '', 
  'shipping_from'         => '', 
  'national'            => '', 
  'national_free'         => '', 
  'national_qty_override'     => '', 
  'national_disable'        => '', 
  'international'         => '', 
  'international_free'      => '', 
  'international_qty_override'  => '', 
  'international_disable'     => '', 
)

Usage Examples

To run the filter, copy this sample

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

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $array_val; 
}
add_filter( 'wcv_shipping_default_options', 'filter_wcv_shipping_default_options', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_shipping_default_options', 'filter_wcv_shipping_default_options', 10, 1 );

Defined

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

  • wcvendors-pro/admin/class-wcvendors-pro-shipping-controller.php line 664
    return apply_filters( 'wcv_shipping_default_options',

filters

Updated on January 9, 2017

Was this article helpful?