WordPress at Your Fingertips
function is not described

WC_REST_Order_Refunds_V2_Controller::__construct() public WC 1.0

Order refunds actions.

{} It's a method of the class: WC_REST_Order_Refunds_V2_Controller{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_REST_Order_Refunds_V2_Controller::__construct() WC 5.9.0

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