From 80ada5400b9bcfcccc1ac741727dc6dfc04896e8 Mon Sep 17 00:00:00 2001 From: danix Date: Wed, 4 Jul 2018 18:03:21 +0200 Subject: initial commit --- include/options-register.php | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 include/options-register.php (limited to 'include/options-register.php') diff --git a/include/options-register.php b/include/options-register.php new file mode 100644 index 0000000..506a17b --- /dev/null +++ b/include/options-register.php @@ -0,0 +1,52 @@ + array( + 'href' => array(), + 'title' => array(), + 'class' => array(), + 'id' => array() + ) + ); + $valid_input['logged_in_links'] = ('' == $input['logged_in_links'] ? '' : wp_kses($input['logged_in_links'], $valid_data) ); + } elseif($reset) { + $default_options = dnxup_db_defaults(); + // Show Gravatar + $valid_input['show_gravatar'] = $default_options['show_gravatar']; + // Logged out Heading + $valid_input['logged_out_heading'] = $default_options['logged_out_heading']; + // Logged in Heading + $valid_input['logged_in_heading'] = $default_options['logged_in_heading']; + // Logged in Links + $valid_input['logged_in_links'] = $default_options['logged_in_links']; + } + return $valid_input; +} +?> \ No newline at end of file -- cgit v1.2.3