WC_REST_Products_V2_Controller::__construct()
Initialize product actions.
Method of the class: WC_REST_Products_V2_Controller{}
No Hooks.
Return
null
. Nothing.
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 7.7.0
public function __construct() { add_action( "woocommerce_rest_insert_{$this->post_type}_object", array( $this, 'clear_transients' ) ); }