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
- framework for plugin/theme options panel? [closed]
- ajaxurl not defined on front end
- How do I add CSS options to my plugin without using inline styles?
- “Error: Options Page Not Found” on Settings Page Submission for an OOP Plugin
- Why does WordPress add 0 (zero) to an Ajax response?
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- Is get_option function cached?
- How come `wp_options` table does not have an index on `autoload`?
- Update Option Stored in Multi-Dimensional Array
- What are the advantages to the Settings API?
- Adding Widget form fields dynamically
- Where to store plugin settings fields
- Is get_option() faster than accessing get_transient()?
- Saving data-URI to media library
- How to properly validate data from $_GET or $_REQUEST using WordPress functions?
- Nonces can be reused multiple times? Bug / Security issue?
- How can I run AJAX on a button click event?
- What’s the best method for emptying an option created with the Settings API?
- Using query_vars filter
- Releasing new plugin version, how to rename old options keys?
- How-to implement admin Ajax inside an admin WP_List_Table?
- WordPress updates defined vs add_filter?
- What is the difference between esc_html and wp_filter_nohtml_kses?
- Creating Settings Page with dropdowns for Plugin
- How to properly sanitize strings for update_option()
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- Empty POST data on server on AJAX request using Angular $http
- How to add a new plugin page under desired Options page?
- Using AJAX in FrontEnd with WordPress Plugin Boilerplate (wppb.io)
- Build path for a custom portfolio plugin
- Using AJAX in a plugin to submit form – REALLY confused
- wp_localize_script $handle
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- How do I handle multiple Submit buttons in plugin’s option page?
- How to enable users to down-vote in this simple voting counter (that uses the post meta)?
- Deletion of shared options using uninstall.php
- Adding callback function for wp_ajax_ has no effect
- Why won’t register_setting() create a setting?
- get all products of one category
- Get returned variable from a function to add_shortcode function
- Multiple entries in get_option results? or why is _multiwidget set to 1?
- Plugin Settings not Saving on Ajax re-ordered table
- Dropdown list of pages to get page id to store in plugin options
- update_option is not working!
- update_option_{$option} Too Few Arguments
- How to post form in ajax mode and handle it in wordpress
- Save user-specific options in WordPress admin
- How to store accumulate multiple option values in a single array using Options_API
- Using Ajax call in jQuery doesn’t work in widget
- WP_LOCALIZE_SCRIPT doesn’t work
- Creating option to allow user to select the page my plugin content will display on
- Timeout on Admin-Ajax?
- Unified Approach for Placing Option Pages
- Admin-ajax.php appending a status code to ajax response
- WordPress plugin options and jQuery
- WordPress Plugin Setting’s POST
- Performance of several get_option() calls
- Extend plugin options page
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- Can I use the different settings sections over different pages using the save options group?
- Options API – Validation Callback $input is NULL
- Ajax in WordPress – path issue
- Cannot search post by taxonomy
- Coding a plugin on WordPress; when should I sanitize? [duplicate]
- Best choice of options/settings framework for plugin/theme development
- Correct way check nonce (security) using old Options API
- WordPress Ajax callback function from plugin – OOP
- How to store a medium amount of options?
- WP AJAX is not working, always returns 0
- Ensure function has completed before allowing another Ajax call
- How to add settings subpage from a plugin to a settings page created in theme?
- Plugin options not being saved or created
- How to sanitize user input?
- Remove Internal Style Sheet if no Value Provided?
- Get a custom table to an array
- Frontend Ajax call not working using wp_ajax, wp_enqueue_script and wp_localize_script
- What could cause my plugin’s options/settings page not to load?
- How to set “Site Address (URL)” programmatically on WP multisite?
- WordPress setting with select – where is my mistake?
- Fetching the value of forms in WordPress AJAX
- Using wp_parse_args to set up Plugin Default Settings
- include wp-blog-header not working on MAMP
- Any problem in using native jquery ajax style instead of using admin-ajax.php?
- Slow WP_query due to nested wp_query. Need Suggestions
- Show special field when correct shipping is chosen
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- Custom delete option button in plugin settings
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- Storing product price data in the database
- How To Change Post Author Default?
- Woocommerce checkout update totals with datepicker
- Including the necessary functions for a custom ajax registration form
- Editing options pages?
- Multiple options pages validation for a plugin
- $paged always 0 on plugin’s custom page
- How can I rewrite a URL to pass requests to a custom method via AJAX? (I can’t use admin-ajax.php)