WC_REST_Products_V2_Controller::__construct
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 REST Products V2 Controller:: construct WC 11.3.0
public function __construct() {
add_action( "woocommerce_rest_insert_{$this->post_type}_object", array( $this, 'clear_transients' ) );
$this->initialize_rest_api_cache();
}