WC_Shipping_Rate::get_cost
Get rate cost.
Method of the class: WC_Shipping_Rate{}
Hooks from the method
Returns
String.
Usage
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->get_cost();
Changelog
| Since 3.2.0 | Introduced. |
WC_Shipping_Rate::get_cost() WC Shipping Rate::get cost code WC 10.5.0
public function get_cost() {
/**
* Filter the shipping rate cost.
*
* @since 3.2.0
* @param string $cost The shipping rate cost.
* @param WC_Shipping_Rate $this The shipping rate object.
*/
return apply_filters( 'woocommerce_shipping_rate_cost', $this->data['cost'], $this );
}