wcv_commission_rate_percent

Description

apply_filters( 'wcv_commission_rate_percent', $commission, $product_id )

Parameters ( 2 ) ( float ), ( int )

Usage Examples

To run the filter, copy this sample

$value = apply_filters( 'wcv_commission_rate_percent', $commission, $product_id );
  if ( ! empty( $value ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_commission_rate_percent callback
function my_filter_function( $param1, $param2 )  {
  // do your thing here :-) ... 

  return $value;
}
add_filter( 'wcv_commission_rate_percent' , 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

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

Defined

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

  • wc-vendors/classes/class-commission.php line 299
    return apply_filters( 'wcv_commission_rate_percent', $commission, $product_id );

filters

Updated on January 11, 2017

Was this article helpful?