WC_Settings_Payment_Gateways::get_settings_for_default_section()
Get settings array.
Method of the class: WC_Settings_Payment_Gateways{}
Hooks from the method
Return
Array
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_settings_for_default_section();
WC_Settings_Payment_Gateways::get_settings_for_default_section() WC Settings Payment Gateways::get settings for default section code WC 9.7.1
protected function get_settings_for_default_section() { $settings = array( array( 'type' => 'title', // this is needed as <table> tag is generated by this element, even if it has no other content. ), array( 'type' => 'payment_gateways_banner' ), // React mount point for embedded banner slotfill. array( 'type' => 'payment_gateways', ), array( 'type' => 'sectionend', 'id' => 'payment_gateways_options', ), ); return apply_filters( 'woocommerce_payment_gateways_settings', $settings ); }