WC_REST_Order_Refunds_V1_Controller::__construct
Order refunds actions.
Method of the class: WC_REST_Order_Refunds_V1_Controller{}
No Hooks.
Returns
null. Nothing (null).
Usage
$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 REST Order Refunds V1 Controller:: construct code WC 10.7.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 );
}