WC_REST_Products_V2_Controller::__construct()publicWC 1.0

Initialize product actions.

Method of the class: WC_REST_Products_V2_Controller{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_REST_Products_V2_Controller::__construct() code WC 8.9.0

public function __construct() {
	add_action( "woocommerce_rest_insert_{$this->post_type}_object", array( $this, 'clear_transients' ) );
}