WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\Features\WcPayPromotion

WCPaymentGatewayPreInstallWCPayPromotion::__construct() public WC 1.0

Constructor

{} Это метод класса: WCPaymentGatewayPreInstallWCPayPromotion{}

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WCPaymentGatewayPreInstallWCPayPromotion::__construct() WC 6.1.0

public function __construct() {
	$wc_pay_spec = Init::get_wc_pay_promotion_spec();
	if ( ! $wc_pay_spec ) {
		return;
	}
	$this->id           = static::GATEWAY_ID;
	$this->method_title = $wc_pay_spec->title;
	if ( property_exists( $wc_pay_spec, 'sub_title' ) ) {
		$this->title = sprintf( '<span class="gateway-subtitle" >%s</span>', $wc_pay_spec->sub_title );
	}
	$this->method_description = $wc_pay_spec->content;
	$this->has_fields         = false;

	// Get setting values.
	$this->enabled = false;

	// Load the settings.
	$this->init_form_fields();
	$this->init_settings();
}