WordPress at Your Fingertips
function is not described

WC_Shipping_Rate::get_cost() public WC 3.2.0

Get rate cost.

{} It's a 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.

Code of WC_Shipping_Rate::get_cost() WC 5.6.0

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