Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCPaymentGateways::export
Export the step
Метод класса: ExportWCPaymentGateways{}
Хуков нет.
Возвращает
Step.
Использование
$ExportWCPaymentGateways = new ExportWCPaymentGateways(); $ExportWCPaymentGateways->export(): Step;
Код ExportWCPaymentGateways::export() ExportWCPaymentGateways::export WC 10.6.2
public function export(): Step {
$options = array();
$this->maybe_hide_wcpay_gateways();
foreach ( $this->get_wc_payment_gateways() as $id => $payment_gateway ) {
if ( in_array( $id, $this->exclude_ids, true ) ) {
continue;
}
$options[ 'woocommerce_' . $id . '_settings' ] = $payment_gateway->settings;
}
return new SetSiteOptions( $options );
}