wcvendors_commission_status

Description

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

Parameters ( 1 ) ( array )

Sample

array(
  'due'     => __( 'Due', 'wcvendors' ), 
  'paid'    => __( 'Paid', 'wcvendors' ), 
  'reversed'  => __( 'Reversed', 'wcvendors' )
)

 

Usage Examples

To run the filter, copy this sample

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

 // what has been modified...

}

To make a callback function, copy this sample

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

  return $str;
}
add_filter( 'wcvendors_commission_status' , 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

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

Defined

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

  • wc-vendors/classes/class-commission.php line 65
    return apply_filters( 'wcvendors_commission_status', array(

filters

Updated on January 11, 2017

Was this article helpful?