WC_Shipping_Rate::get_cost()publicWC 3.2.0

Get rate cost.

Method of the class: WC_Shipping_Rate{}

Hooks from the method

Return

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() code WC 8.6.1

public function get_cost() {
	return apply_filters( 'woocommerce_shipping_rate_cost', $this->data['cost'], $this );
}