WC_Settings_Payment_Gateways::get_settings() public WC 1.0
Get settings array.
{} Это метод класса: WC_Settings_Payment_Gateways{}
Возвращает
Массив.
Использование
$WC_Settings_Payment_Gateways = new WC_Settings_Payment_Gateways(); $WC_Settings_Payment_Gateways->get_settings( $current_section );
- $current_section(строка)
- Section being shown.
По умолчанию: ''
Код WC_Settings_Payment_Gateways::get_settings() WC Settings Payment Gateways::get settings WC 4.9.0
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 );
}