wcvendors_sold_by_in_loop

Description

apply_filters('wcvendors_sold_by_in_loop', $sold_by_label )

Parameters ( 1 ) ( string )

Usage Examples

To run the filter, copy this sample

$str = apply_filters('wcvendors_sold_by_in_loop', $sold_by_label );
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

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

To remove the filter, copy this sample

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

Defined

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

  • wc-vendors/templates/front/vendor-sold-by.php line 20
     <small class="wcvendors_sold_by_in_loop"><?php echo apply_filters('wcvendors_sold_by_in_loop', $sold_by_label ); ?> <?php echo $sold_by; ?></small><br />

filters

Updated on January 14, 2017

Was this article helpful?