WC_Shipping_Rate::get_id
Get ID for the rate. This is usually a combination of the method and instance IDs.
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_id();
Changelog
| Since 3.2.0 | Introduced. |
WC_Shipping_Rate::get_id() WC Shipping Rate::get id code WC 10.3.6
public function get_id() {
/**
* Filter the shipping rate ID.
*
* @since 3.2.0
* @param string $id The shipping rate ID.
* @param WC_Shipping_Rate $this The shipping rate object.
*/
return apply_filters( 'woocommerce_shipping_rate_id', $this->data['id'], $this );
}