wcvendors_cart_sold_by_meta

Description

apply_filters('wcvendors_cart_sold_by_meta', $sold_by_label, get_the_ID(), $vendor_id ) .' '. $sold_by .

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

Usage Examples

To run the filter, copy this sample

$str = apply_filters('wcvendors_cart_sold_by_meta', $sold_by_label, get_the_ID(), $vendor_id ) .' '. $sold_by . ;
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

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

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcvendors_cart_sold_by_meta', '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 65
    echo apply_filters('wcvendors_cart_sold_by_meta', $sold_by_label, get_the_ID(), $vendor_id ) .' '. $sold_by . '
    ';

filters

Updated on January 14, 2017

Was this article helpful?