Add description and delivery time to constructor

This commit is contained in:
Thomas Roberts 2024-07-17 16:01:53 +01:00
parent f833964969
commit e648edf38f
No known key found for this signature in database
GPG Key ID: 0262BEBCBE336365
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class WC_Shipping_Rate {
* @param string $method_id Shipping method ID. * @param string $method_id Shipping method ID.
* @param int $instance_id Shipping instance ID. * @param int $instance_id Shipping instance ID.
*/ */
public function __construct( $id = '', $label = '', $cost = 0, $taxes = array(), $method_id = '', $instance_id = 0 ) { public function __construct( $id = '', $label = '', $cost = 0, $taxes = array(), $method_id = '', $instance_id = 0, $description = '', $delivery_time = '') {
$this->set_id( $id ); $this->set_id( $id );
$this->set_label( $label ); $this->set_label( $label );
$this->set_cost( $cost ); $this->set_cost( $cost );