WC_REST_Products_V2_Controller::__construct
Initialize product actions.
Method of the class: WC_REST_Products_V2_Controller{}
No Hooks.
Returns
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() WC REST Products V2 Controller:: construct code WC 10.3.6
public function __construct() {
add_action( "woocommerce_rest_insert_{$this->post_type}_object", array( $this, 'clear_transients' ) );
}