wcv_commission_rate

Description

apply_filters( 'wcv_commission_rate', $commission, $product_id, $product_price, $order, $qty )

Parameters ( 5 ) ( float ), ( int ), ( float ), ( object ), ( int )

Usage Examples

To run the filter, copy this sample

$value = apply_filters( 'wcv_commission_rate', $commission, $product_id, $product_price, $order, $qty );
  if ( ! empty( $value ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $value;
}
add_filter( 'wcv_commission_rate' , 'my_filter_function', 10, 5 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_commission_rate', 'my_filter_function', 10, 5 );

Defined

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

  • wc-vendors/classes/class-commission.php line 317
    return apply_filters( 'wcv_commission_rate', $commission, $product_id, $product_price, $order, $qty );

filters

Updated on January 11, 2017

Was this article helpful?