WordPress at Your Fingertips
function is not described

WC_REST_Products_V1_Controller::__construct() public WC 1.0

Initialize product actions.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_REST_Products_V1_Controller::__construct() WC 5.9.0

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