Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives
WooPayments::__construct()
Constructor.
Метод класса: WooPayments{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WooPayments = new WooPayments(); $WooPayments->__construct( $suggestion_id );
- $suggestion_id(строка) (обязательный)
- The suggestion ID.
Код WooPayments::__construct() WooPayments:: construct WC 9.6.0
public function __construct( string $suggestion_id ) { parent::__construct( $suggestion_id ); $this->cache_transient_name = self::PREFIX . $suggestion_id . '_cache'; $this->store_has_orders_transient_name = self::PREFIX . $suggestion_id . '_store_has_orders'; $this->store_had_woopayments_option_name = self::PREFIX . $suggestion_id . '_store_had_woopayments'; }