I figured it out, when registering with register_setting the second parameter is the name of the settings you will be saving and updating, the parameter is pass in here to whitelist it against being updated outside of the plugin. The AJAX callback is deemed outside of the plugin.
My register settings is below and the second option is the same as the one in get_option in my question. For the settings that I will be changing I will simply use a different name.
register_setting(
'user_manager_group',
'user_manager_options',
array($this, 'sanitize')
);
Related Posts:
- How to call a PHP function with Ajax when the user clicks a button
- Delete row of custom table in WordPress using AJAX
- Minimal WordPress load for only `get_option` to work (because ajax…)
- Cannot update my options using wp_ajax
- How to make get_theme_mod work with AJAX in the customizer preview
- Updating a checkbox value to database for specific row in table
- Can’t get result from sql using ajax result
- Ajax insert or update data
- Creating an auto result search bar
- update_option is not saving an array, but saving the string ‘Array’
- Ajax call in wordpress not working for subscriber user
- Sql formatting for post data within function
- update_option in WordPress AJAX
- Use AJAX in a WordPress Plugin to Get Data From Custom Database?
- How to perform a frontend HTTP call with AJAX when plugin save the new settings?
- How to load dynamic option with ajax
- WordPress ajax response save into database
- WordPress Select Option Load Custom Fields
- Counting Posts with multiple taxonomy and terms condition using MySQL and AJAX
- Not getting ajax success response on insert/update row to database
- AJAX is not submitting data to database
- AJAX save options inside class
- Ajax Form data is not posted back to the get_results()
- Using AJAX for dynamic settings pages
- using Ajax: call to undefined function get_option
- Can’t access data from database using AJAX
- Translating wordpress foreach to ajax
- WordPress Ajax – looping data into a table
- $wpdb Ajax not redirecting to main page
- Adding custom fields to Wired Impact Volunteer Management Plugin
- Successful ajax call returns lots of whitespace and text of code with 0
- Using $.ajax getting 500 error
- ASP.NET MVC controller actions that return JSON or partial html
- How to check if I am in admin-ajax.php?
- Ajax in a settings page (update_option is undefined)
- gettext does not translate when called in ajax
- Execute one AJAX request after another AJAX request finished
- admin-ajax.php vs Custom Page Template for Ajax Requests
- Load tinyMCE / wp_editor() via AJAX [duplicate]
- AJAX request from Chrome Extension to WordPress Website
- How to correctly load wordpress in a non WP script for AJAX request
- Why is admin ajax reloading my page
- Plupload in metabox – AJAX action not working in Class
- Why this plugin doesn’t work with media upload page?
- CPU usage: AJAX and Heartbeat API on admin pages
- Solve cors problem using rest api or ajax
- Can part of my WordPress website be headless?
- Nonces, AJAX, script variables & security in WordPress
- Extending wp JavaScript base class to make a post request to a custom REST endpoint
- Why would admin-ajax.php redirect to the home page for logged out users?
- wp_localize_script escaping my url – fix or alternative
- Admin Ajax and HTML5 Formdata
- Implementing an AJAX POST API call in wordpress
- WordPress ajax problem need wordpress expert?
- Ajax WordPress Login needs to be stayed in current page Url without redirecting
- wp_ajax function did not call
- Loading comments in ajax – comment-reply function missing $args
- Woocommerce update product price via AJAX
- How do I query posts by a sub value with the API?
- Popup or admin/update notice on post/page edit screen without page refresh
- Enqueue script in plugin is not working
- Single page site + pushState?
- Ajax call does not work for this simple code
- WordPress ajax call returns a zero though die()
- Ajax future single post query doesn’t work when NOT logged in
- wp_update_post onclick button using ajax
- Localize script not working
- Why, if a function accepts arguments, it fails on ajax calls?
- wp_ajax declaration confusing for Front end
- WP_query offset seems to be counting draft post – AJAX load more
- adding ajax load more to display images from meta box
- Can’t load search results with ajax
- wp_ajax is not calling the action
- Deny dashboard access breaks ajax requests
- Run javascript upon successfully set featured image
- Search query with Ajax
- ajax in admin menu
- Register Template
- Ajax Favorite from foreach (how to specify which result result is processed)
- change wordpress pagination url after doing the request
- WordPress responds to the ajax request with readyState 1, 2, 3 before responding with 4
- Filter images from media library by guid meta field
- WordPress New Post via ajax call
- 400 Bad Request getting on AJAX Call
- admin-ajax.php 403 errors – no caching, permissions are fine
- How to add Ajax to this Pagination i made?
- Adding user using admin ajax by a user with custom role
- How can I run two AJAX requests simultaneously in WordPress?
- Issue developing an AJAX form with WordPress
- Ajax global variable is not getting saved (returns null)
- WP admin ajax Pagination issue
- Why function called by admin-ajax executes synchronously?
- Native WordPress Video Shortcode Not Working After Post is Loaded via Ajax
- AJAX Post from same domain to a wordpress page
- Speeding up admin-ajax.php
- AJAX admin Internal 500 error Failed to Upload
- Class property not visible inside ajax callback function?
- Front-end ajax problem all users and guests getting a 302 redirect when accessing wp-admin/admin-ajax.php
- Use Ajax to get an Options Settings Value
- Run PHPMailer function after ajax function completes that adds row to custom table