From 56e6429940f2996e2ce923c8716259a29d36c288 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 14 Jun 2016 19:00:18 -0300 Subject: [PATCH] Restore the WC_Settings_API::init_form_fields() method --- includes/abstracts/abstract-wc-settings-api.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/abstracts/abstract-wc-settings-api.php b/includes/abstracts/abstract-wc-settings-api.php index bd9d7a393f9..d5b105aae07 100644 --- a/includes/abstracts/abstract-wc-settings-api.php +++ b/includes/abstracts/abstract-wc-settings-api.php @@ -74,6 +74,17 @@ abstract class WC_Settings_API { echo '' . $this->generate_settings_html( $this->get_form_fields(), false ) . '
'; } + /** + * Initialise settings form fields. + * + * Add an array of fields to be displayed + * on the gateway's settings screen. + * + * @since 1.0.0 + * @return string + */ + public function init_form_fields() {} + /** * Return the name of the option in the WP DB. * @since 2.6.0