I belive all your numbers are saved as array to your option. So get_option($this->plugin_name.'cc')
should give you an array $options
.
While adding get this array first, insert a new element to the array $options[] = 'new element' ;
. Now save this array to your option again with modified $options.
Related Posts:
- array_map() for sanitizing $_POST
- WP_Editor – Saving Value into Plugin Option – Stripping HTML
- Prevent invalid or empty values from being saved to the database and retain the form field values upon error
- insert query on a custom table using ajax with jQuery plugin Jeditable
- How do I add CSS options to my plugin without using inline styles?
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- How come `wp_options` table does not have an index on `autoload`?
- What are the advantages to the Settings API?
- Adding Widget form fields dynamically
- Nonces can be reused multiple times? Bug / Security issue?
- How-to implement admin Ajax inside an admin WP_List_Table?
- How to properly sanitize strings for update_option()
- Using AJAX in FrontEnd with WordPress Plugin Boilerplate (wppb.io)
- How do I handle multiple Submit buttons in plugin’s option page?
- Deletion of shared options using uninstall.php
- Adding callback function for wp_ajax_ has no effect
- Plugin Settings not Saving on Ajax re-ordered table
- update_option is not working!
- Save user-specific options in WordPress admin
- How to store accumulate multiple option values in a single array using Options_API
- Admin-ajax.php appending a status code to ajax response
- WordPress Plugin Setting’s POST
- Performance of several get_option() calls
- How to add settings subpage from a plugin to a settings page created in theme?
- How to sanitize user input?
- Remove Internal Style Sheet if no Value Provided?
- Get a custom table to an array
- What could cause my plugin’s options/settings page not to load?
- How to set “Site Address (URL)” programmatically on WP multisite?
- Fetching the value of forms in WordPress AJAX
- Using wp_parse_args to set up Plugin Default Settings
- Any problem in using native jquery ajax style instead of using admin-ajax.php?
- Show special field when correct shipping is chosen
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- Storing product price data in the database
- $paged always 0 on plugin’s custom page
- How to localize admin.php only once
- Create a new post using rest api and save featured image using an external image url
- wp.template() returns tags in Ajax response
- How to get Metabox custom field to show checked if value is updated using post meta query?
- Parse form values before sending to options.php
- WordPress pre_get_posts with combined results of two queries (OR)
- Fatal error: Uncaught Error: Call to undefined function get_option()
- Use just a shortcode from another page
- template_redirect or admin-ajax.php?
- Insert/Update values to a table after blogname option etc. is updated
- wordpress how to query wp_options table
- how to update and display an option without reloading the page
- How Can I add Fields in wp-option table?
- Plugin Options Array Set to Undefined
- Update Data parameter of a wp_localize_script() call
- Checked() function on a multidimensional array
- Bad Request in AJAX
- Prevent WordPress automatically processing certain URL queries
- ajax recursive calls on wordpress returning answers outsite the function scope
- Ajax submit result opens in admin-ajax.php
- Are there any security risks when submitting data-attribute data through AJAX?
- Why in this archive page that call query_posts() function show only the last 10 posts?
- Plugin AJAX Save to Custom Table
- The Correct Way to Use Nonce Field without Settings API
- Data not insert and update through ajax and jQuery in admin page?
- WP ajax requests not stacking?
- AJAX button with success callback. (Titan Framework)
- Custom Plugin Options Won’t Update
- AJAX call returns ‘testtest0’ instead of ‘test’ – why?
- Best practice for plugin: always detect admin-ajax call?
- Why is the form not updating when I select a new sector from the list?
- Plugin Form Submitting to admin-ajax.php instead of admin-post.php
- Brainstorm – Slow Query from Plugin Need to Speed It Up
- why does get_option( ‘home’ ) not work while using in plugin [closed]
- Plugin Options not saving options and doesn’t work
- Get cat parameter from admin-ajax
- Load specific page when a custom URL is hit
- How does one update complex options?
- How to control ajax calls without effecting memory of server?
- Forbidden Error in ajax call with wordpress
- “add to cart” links css class “ajax_add_to_cart” doesn’t show in woocommerce in widget sidebar
- Does $this context change in an AJAX callback?
- WordPress Ajax not returning Response
- do I need to sanitize a shortcode’s function input?
- Plugins Settings page not updating
- Performing ajax request in wordpress
- Inserted data from database does not showing on front-page without referesh page?
- wp_ajax function return the html page
- How to create plugin settings page for each admin user?
- Using JavaScript in WordPress page to call for server data using AJAX
- bindParam? WordPress 4.9.5 SQL LIKE statement %s and %LIKE%
- add_settings_error on validating plugin options API
- WP Ajax on page load not working on bluehost but was working on Godaddy
- Ajax not working to insert, query and result data
- Can’t get query string in ajax call
- the correct way to use options from settings page [closed]
- Ajax url value to pass ‘variable’ to use in query
- Add query string variables to all hyperlinks URL matching a specified domain
- An adiitional function fires on my AJAX submit
- oneOf two possible objects in WP REST API?
- Admin Message after Plugin Option Updated
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- Can I log the searches that are returning 404 in the DB?
- WordPress plugin boilerplate AJAX functionality