Skip to content

Commit

Permalink
Small tweeks
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyzen committed Jan 25, 2023
1 parent 10eb972 commit 4728342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woonuxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function woonuxt_plugin_action_links($links) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';

// Add options page
add_action( 'admin_menu', 'woonuxt_options_page' );
function woonuxt_options_page() {
add_options_page(
'WooNuxt Options',
Expand All @@ -37,7 +38,6 @@ function woonuxt_options_page() {
'woonuxt_options_page_html'
);
}
add_action( 'admin_menu', 'woonuxt_options_page' );

// Options page HTML
function woonuxt_options_page_html() {
Expand All @@ -64,6 +64,7 @@ function woonuxt_options_page_html() {
}

// Register settings
add_action( 'admin_init', 'woonuxt_register_settings' );
function woonuxt_register_settings() {
register_setting( 'woonuxt_options', 'woonuxt_options' );

Expand All @@ -81,7 +82,6 @@ function woonuxt_register_settings() {
'woonuxt',
);
}
add_action( 'admin_init', 'woonuxt_register_settings' );

// Section callback
function required_plugins_callback() {
Expand Down

0 comments on commit 4728342

Please sign in to comment.