public static function get_cart_shipping_title() { // in this instance we want the title of the shipping method only. If no title is provided, use the label. $title = fflcommerce_shipping::get_chosen_method_title(); $label = $title ? $title : fflcommerce_shipping::get_label(); if (!$label) { return false; } return sprintf(__('via %s', 'fflcommerce'), $label); }