wcvendors_cart_sold_by

Description

apply_filters('wcvendors_cart_sold_by', $sold_by_label, $cart_item[ 'data' ]->post->ID, $cart_item[ 'data' ]->post->post_author )

Parameters ( 3 ) ( string ), ( int ), ( string )

Usage Examples

To run the filter, copy this sample

$str = apply_filters('wcvendors_cart_sold_by', $sold_by_label, $cart_item[ 'data' ]->post->ID, $cart_item[ 'data' ]->post->post_author );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

  return $str;
}
add_filter( 'wcvendors_cart_sold_by' , 'my_filter_function', 10, 3 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcvendors_cart_sold_by', 'my_filter_function', 10, 3 );

Defined

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

  • wc-vendors/classes/front/class-vendor-cart.php line 46
    'name'    => apply_filters('wcvendors_cart_sold_by', $sold_by_label, $cart_item[ 'data' ]->post->ID, $cart_item[ 'data' ]->post->post_author ),

filters

Updated on January 14, 2017

Was this article helpful?