wcv_shipping_types

Description

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

Parameters (1) (array)

Sample

array( 
  'flat'    => __( 'Flat Rate', 'wcvendors-pro' ),
  'country'   => __( 'Country Table Rate',  'wcvendors-pro' ), 
)

 

Usage Examples

To run the filter, copy this sample

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

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $array_val;
}
add_filter( 'wcv_shipping_types', 'filter_wcv_shipping_types', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_shipping_types', 'filter_wcv_shipping_types', 10, 1 );

Defined

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

  • wcvendors-pro/admin/class-wcvendors-pro-shipping-controller.php line 517
    return apply_filters( 'wcv_shipping_types', array(

filters

Updated on January 7, 2017

Was this article helpful?