Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCPaymentGateways::export
Export the step
Method of the class: ExportWCPaymentGateways{}
No Hooks.
Returns
Step.
Usage
$ExportWCPaymentGateways = new ExportWCPaymentGateways(); $ExportWCPaymentGateways->export(): Step;
ExportWCPaymentGateways::export() ExportWCPaymentGateways::export code 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 );
}