From febd6bac73eee4db50d94c9fe3cb20d629539bfc Mon Sep 17 00:00:00 2001 From: "Rafasashi\\Raphael" Date: Tue, 25 Jul 2023 10:26:12 +0545 Subject: [PATCH] settings_fields updated --- includes/class-wordpress-plugin-template-settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/class-wordpress-plugin-template-settings.php b/includes/class-wordpress-plugin-template-settings.php index 3015a12..0a8d985 100644 --- a/includes/class-wordpress-plugin-template-settings.php +++ b/includes/class-wordpress-plugin-template-settings.php @@ -177,6 +177,8 @@ public function add_settings_link( $links, $file ) { */ private function settings_fields() { + $settings = array(); + /* $settings['standard'] = array( 'title' => __( 'Standard', 'wordpress-plugin-template' ), @@ -304,9 +306,7 @@ private function settings_fields() { ); */ - $settings = apply_filters( $this->parent->_token . '_settings_fields', $settings ); - - return $settings; + return apply_filters( $this->parent->_token . '_settings_fields', $settings ); } /**