I figured it out. It’s not actually in the code above at all, but in one of the lower methods I use to generate the array keys for $settings
.
The problem was that in one of those other methods, I had the following code:
if ( ! isset( $_GET['page'] ) || $this->slug !== $_GET['page'] ) {
return $options;
}
I often use this to avoid making unnecessary API calls when users are doing other things inside the admin. But in this case, it was also preventing the plugin from getting the settings key names for those fields when the data was posted to Core’s options.php
, since of course options.php
does not have the $_GET['page']
value expected by this plugin.
I still need to do some investigating to make sure I only call these things when needed, but at least for this question that is the problem, and is thus solved.
Related Posts:
- Creating your own options-general.php page
- wp-admin pages return ERR_EMPTY_RESPONSE
- Reorder custom submenu item
- WordPress custom permalinks not working on OS X localhost
- Add custom content in user-edit.php page
- What is an “Options Framework” for WordPress
- WordPress address URL keeps dropping the www
- using wp_sprintf at wordpress option page,
- WordPress Options Page not working
- How to change user admin_color with WP CLI?
- Hide admin menu on update_option
- Custom plugin admin page issues
- Change admin defaults for reading settings
- unsuccessful attempt to change domains- wordpress re-routing to old domain
- Form input values are empty after submit
- Admin page changes the $_POST data
- How to Fix WordPress Not Saving Settings?
- How to display status messages in admin panel
- Options site set empty fields after submitting
- remove_query_arg on options.php
- I am not able to enable jQuery in theme settings
- Cannot Update wp DB – Get 500 Error
- Is get_option function cached?
- sortable custom column in media library
- how do I force a single column layout in screen layout
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- Sortable admin columns, when data isn’t coming from post_meta
- wp_list_table search box does not show
- How to remove the site health dashboard widget?
- How to Display Post Excerpts in Admin by Default?
- Wp3.5 Media Gallery Edit modal: change captions to title
- What is the capability that permits access to WP-Admin?
- WordPress in sub directory wp-admin problem
- Admin account only shows Profile and Dashboard with no activity
- Enqueue Javascript Correctly for 3.5
- Adding body class to login page?
- Edit a WordPress site without the username and password?
- WordPress admin menu gap when debug mode is enabled?
- Call to undefined function insert_with_markers
- How can I remove the new stats message? [closed]
- How to inhibit dashboard and profile management access to normal users?
- Admin Blank Page with Working Front-End After Updating to WordPress 4.6
- Why can’t I exclude private posts from this query?
- Moved wordpress from localhost to live and wp-admin shows white screen
- Auto create post title in admin
- Settings API – sanitize_callback is not called and it leads to an incorrect behavior
- WordPress setting with select – where is my mistake?
- Cannot Access Admin Area After Migration
- Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php
- Modify wp-admin page header ‘viewport’ meta data
- The uploaded file exceeds!
- Having troubles connecting to WordPress login page using Mamp
- Remove or move admin submenus under a new menu
- Where can I find admin-header.php file online?
- class-wp-hook.php on line 288
- Efficient way to check local WordPress php files and Database for malicious code? [duplicate]
- How to disable categories/most used in ‘add new post’?
- Is it possible to create two different wp-admins for a wp website
- Am I able to change the name of /wp-admin/options-general.php?
- how to customize the default #adminmenu in wp-admin
- blocking the admin section (but still using admin-ajax.php)
- WP Admin messed up
- wp-login not found – All usual solutions not working
- Why when I try to access to this old WordPress site it is opened the installation page?
- What do I need for testing a single script in admin
- Wp-Admin extremely slow!
- Run two wordpress on the same domain
- nothing comes up when i go to my website.com/wp-admin? Which files should I look for?
- How to save Setting pages data to the database?
- Programmatically emulate viewing a post in wp-admin
- How to remove some author fields from the edit comment page in wp-admin?
- When i try to open Localhost/wordpress/wp-admin . An Error appears ” Registration Has been Disabled” . No login page is shown in the browser
- Line-height of text in wp-admin
- Slow WP loading due to persistent version check, how to disable?
- Can I manage the photos that are pulled from Instagram before they are uploaded?
- How do I edit an add in wp_list_table and return to same page
- admin_post_nopriv_{$action} is secure?
- Is it possible to have a global parameter page which allows to configure other plugins in the same place?
- Help to create the best plugin settings!
- Adding custom classes to elements via the WYSIWYG
- How to log into WordPress via GET/POST
- Get rendered HTML of Page in Admin Area
- Having SSL enabled on admin, but disabled on post preview and live preview?
- How do I add a textarea (multirow) option to my WordPress plugin?
- adding existing menu page on new customer user role
- stop customize.php redirect to login page if admin is not logged in
- Google flagged a wp-admin redirect as phishing
- Organising and display thousands of photos in media library
- Problem with admin columns
- Checkbox not showing as checked on UserProfile (even with checked=”checked”)
- Get URL of current featured image with JS in edit post view
- Custome column sort by date not title
- Block tools menu in wp-admin?
- is_admin() triggers error
- WordPress Admin: open popup window on a custom button
- No HTML/Visual mode option in admin panel (New Post)
- Removing Author name
- Taking over a WordPress site
- WordPress blog fails to open
- LinkControl not showing suggestions when used on admin page