WC_Shipping_Rate::get_method_id() public WC 3.2.0
Set shipping method ID the rate belongs to.
{} Это метод класса: WC_Shipping_Rate{}
Хуки из метода
Возвращает
Строку.
Использование
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->get_method_id();
Список изменений
С версии 3.2.0 | Введена. |
Код WC_Shipping_Rate::get_method_id() WC Shipping Rate::get method id WC 5.0.0
public function get_method_id() {
return apply_filters( 'woocommerce_shipping_rate_method_id', $this->data['method_id'], $this );
}