WC_REST_Order_Refunds_V1_Controller::__construct()publicWC 1.0

Order refunds actions.

{} Это метод класса: WC_REST_Order_Refunds_V1_Controller{}

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WC_REST_Order_Refunds_V1_Controller::__construct() WC 7.1.0

public function __construct() {
	add_filter( "woocommerce_rest_{$this->post_type}_trashable", '__return_false' );
	add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 );
}