wcvendors_vendor_shipped_note

Description

apply_filters( 'wcvendors_vendor_shipped_note', sprintf( __(  '%s has marked as shipped. ', 'wcvendors'), $shop_name ) ), $user_id, $shop_name )

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

Usage Examples

To run the filter, copy this sample

$str = apply_filters( 'wcvendors_vendor_shipped_note', sprintf( __(  '%s has marked as shipped. ', 'wcvendors'), $shop_name ) ), $user_id, $shop_name ); ;
  if ( ! empty( $str ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

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

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

To remove the filter, copy this sample

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

Defined

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

  • wc-vendors/classes/front/dashboard/class-vendor-dashboard.php line 55
    $order->add_order_note( apply_filters( 'wcvendors_vendor_shipped_note', sprintf( __(  '%s has marked as shipped. ', 'wcvendors'), $shop_name ) ), $user_id, $shop_name );

filters

Updated on January 14, 2017

Was this article helpful?