From 485154b076468fcf6d6f593f40acaf51a7abc486 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Fri, 1 Jul 2016 15:19:24 -0400 Subject: [PATCH] Setup settings page finally, move settings array to bottom of pile - #45 --- includes/admin.php | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/includes/admin.php b/includes/admin.php index adc1513..3f7b0a4 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -57,16 +57,6 @@ class CWV2_Admin { add_action( 'admin_menu', array( $this, 'add_menu' ) ); } - /** - * Gets the settings config - * - * @author JayWood - * @return array - */ - public function get_settings_config() { - return array(); - } - /** * Adds the options menu. * @@ -93,6 +83,16 @@ class CWV2_Admin { * @author JayWood */ public function render_settings_page() { + ?>
+

+
+ option_prefix . 'options_group' ); + do_settings_sections( $this->options_page ); + submit_button(); + ?> +
+