wcv_commission_types

Description

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

Parameters (1) (array)

Sample

array( 
  'fixed'     => __( 'Fixed',       'wcvendors-pro' ),
  'fixed_fee'   => __( 'Fixed + fee',     'wcvendors-pro' ),
  'percent'   => __( 'Percentage',    'wcvendors-pro' ),
  'percent_fee' => __( 'Percentage + fee',  'wcvendors-pro' ),
)

 

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_commission_types', array( $attributes ) );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $array_val;
}
add_filter( 'wcv_commission_types', 'filter_wcv_commission_types', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_commission_types', 'filter_wcv_commission_types, 10, 1 );

Defined

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

  • wcvendors-pro/admin/class-wcvendors-pro-commission-controller.php line 343
    return apply_filters( 'wcv_commission_types', array(

filters

Updated on January 7, 2017

Was this article helpful?