wc_autoship_schedule_email_shipping_method (filter)

Alter how shipping methods are displayed in Autoship emails.

Example

<?php 
/**
* @param string $shipping_method_id
* @return string 
*/
function wc_autoship_schedule_email_shipping_method_example( $shipping_method ) {
  // Display special message for a specific shipping method
  if ( $shipping_method == "free_shipping" ) {
    return "Free shipping!";
  }
  return $shipping_method;
}
add_filter( 'wc_autoship_schedule_email_shipping_method', 'wc_autoship_schedule_email_shipping_method_example', 10, 1 );

Still need help? Contact Us Contact Us