Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCPaymentGateways::export()
Export the step
Метод класса: ExportWCPaymentGateways{}
Хуков нет.
Возвращает
Step
.
Использование
$ExportWCPaymentGateways = new ExportWCPaymentGateways(); $ExportWCPaymentGateways->export(): Step;
Код ExportWCPaymentGateways::export() ExportWCPaymentGateways::export WC 9.7.1
public function export(): Step { $step = new SetWCPaymentGateways(); $this->maybe_hide_wcpay_gateways(); foreach ( $this->get_wc_payment_gateways() as $id => $payment_gateway ) { if ( in_array( $id, $this->exclude_ids, true ) ) { continue; } $step->add_payment_gateway( $id, $payment_gateway->get_title(), $payment_gateway->get_description(), $payment_gateway->is_available() ? 'yes' : 'no' ); } return $step; }