WC_Settings_Payment_Gateways::get_settings( string $current_section = '' )
Get settings array.
Description Description
Parameters Parameters
- $current_section
-
(Optional) Section being shown.
Default value: ''
Return Return
(array)
Source Source
File: includes/admin/settings/class-wc-settings-payment-gateways.php
public function get_settings( $current_section = '' ) {
$settings = array();
if ( '' === $current_section ) {
$settings = apply_filters(
'woocommerce_payment_gateways_settings',
array(
array(
'title' => __( 'Payment methods', 'woocommerce' ),
'desc' => __( 'Installed payment methods are listed below and can be sorted to control their display order on the frontend.', 'woocommerce' ),
'type' => 'title',
'id' => 'payment_gateways_options',
),
array(
'type' => 'payment_gateways',
),
array(
'type' => 'sectionend',
'id' => 'payment_gateways_options',
),
)
);
}
return apply_filters( 'woocommerce_get_settings_' . $this->id, $settings, $current_section );
}