WC_REST_Products_V2_Controller::__construct()publicWC 1.0

Initialize product actions.

Метод класса: WC_REST_Products_V2_Controller{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код WC_REST_Products_V2_Controller::__construct() WC 8.7.0

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