WC_REST_Orders_V1_Controller::__construct()
Initialize orders actions.
Method of the class: WC_REST_Orders_V1_Controller{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_REST_Orders_V1_Controller = new WC_REST_Orders_V1_Controller(); $WC_REST_Orders_V1_Controller->__construct();
WC_REST_Orders_V1_Controller::__construct() WC REST Orders V1 Controller:: construct code WC 9.8.1
public function __construct() { add_filter( "woocommerce_rest_{$this->post_type}_query", array( $this, 'query_args' ), 10, 2 ); }