Automattic\WooCommerce\Internal\StockNotifications\Frontend
ProductPageIntegration::__construct
Constructor.
Метод класса: ProductPageIntegration{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ProductPageIntegration = new ProductPageIntegration(); $ProductPageIntegration->__construct();
Код ProductPageIntegration::__construct() ProductPageIntegration:: construct WC 11.2.2
public function __construct() {
add_action( 'woocommerce_simple_add_to_cart', array( $this, 'maybe_render_form' ), 30 );
add_action( 'woocommerce_after_add_to_cart_form', array( $this, 'maybe_render_form' ), 30 );
}