WC_Shipping_Rate::get_description
Get rate description.
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_description();
Changelog
| Since 9.2.0 | Introduced. |
WC_Shipping_Rate::get_description() WC Shipping Rate::get description code WC 10.5.0
public function get_description() {
/**
* Filter the shipping rate description.
*
* @since 9.2.0
*
* @param string $description The current description.
* @param WC_Shipping_Rate $this The shipping rate.
*/
return apply_filters( 'woocommerce_shipping_rate_description', $this->data['description'], $this );
}