WC_REST_Order_Refunds_V2_Controller::__construct()publicWC 1.0

Order refunds actions.

Метод класса: WC_REST_Order_Refunds_V2_Controller{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_REST_Order_Refunds_V2_Controller = new WC_REST_Order_Refunds_V2_Controller();
$WC_REST_Order_Refunds_V2_Controller->__construct();

Код WC_REST_Order_Refunds_V2_Controller::__construct() WC 9.3.3

public function __construct() {
	add_filter( "woocommerce_rest_{$this->post_type}_object_trashable", '__return_false' );
}