Ok, maybe I asked it too soon … took a look at it again and gave myself a slap for being so stupid. The widget-config.php is set to update when the page loads so every time it loaded the page it updated the ‘example_number’ option all you need to do is add if(isset($_POST[‘submit’])) to it.
Related Posts:
- Difference Between Filter and Action Hooks?
- How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?
- How to create an API for my plugin?
- How to store username and password to API in wordpress option DB?
- Add screen options to custom admin pages
- Is there a limit on making calls to WordPress.org API’s?
- Change default admin page for specific role(s)
- Using filters and actions for plugin API?
- WordPress and multithreading
- Dashboard like meta boxes in my plugin – how to save their position and open/closed state?
- permalinks with get variables
- Build dynamic page from cURL (HTML page) response with plugin
- How to override a function call in functions.php?
- wp_enqueue_style built in styles
- Rearranging Dashboard meta boxes with use of plugin/functions.php
- Should I ask my Twitter plugin users to create their own Twitter App and API Keys to use my plugin?
- Does WordPress’s HTTP API use any caching?
- How to create a Tools menu on the Network Admin dashboard from a plugin
- how do you prevent showing a particular category on the admin dashboard for specific user roles?
- Dashboard – get status and position of metaboxes and pass them to ajax method
- Amending REST API function without deactivate/activate plugin every time changes is made
- “dashboard”-named PHP file doesn’t get included
- Why does wp_remote_post returns an empty body response on certain endpoints?
- Adding custom end points, No error line
- Sending post request with wp_remote_post not working correctly
- woocommerce_checkout_order_processed hook executing function twice
- Avoid updating post when sending POST or GET request to post.php
- What to hook into to check a value before a post is published?
- Encoding Method for URLs?
- Google credentials and redirect URI for Google OAuth2 in a WordPress plugin, questions
- Plugin index page code executes multiple times
- Pass CF7 form data to plugin
- Best way to ping for the API changes in the wordpress?
- Plugin architecture to pull from API & create dynamic content on WP site?
- Lead form that submits to 2 external APIs
- Widget internal hooks and functions
- Custom Icon for Plugin
- Allow REST API Endpoint to specific user and hide from public
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- Get API auth_token token to renew weekly
- How to show the posts listing on dashboard or custom page in admin panel?
- How to query a nested field in wordpress api using _fields param
- call funcution when clicking submit
- Quick Draft widget (dashboard.php) using custom post_type
- Adding Amchart Interface to WordPress API
- How do I make secure API calls from my WordPress plugin?
- Generate Static Page to Show Search Results/Detail for API
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- Hiding WordPress REST endpoints from public viewing using Basic Authentication
- add pagination to wp_remote_get
- Multisite and the JSON REST API: How to?
- How do WordPress plugins work with oAuth2 APIs?
- Publish, Save Draft and Preview buttons do not work after being moved with jQuery
- API WordPress is Limited? Return False
- Tie specific functions to options-update for limiting API requests
- Do you see any problems (mainly security-related) with how I’ve used wp_ajax_* actions?
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- Can a plugin differentiate syndication feeds from actual site views?
- Developing a plugin, ran it through P3 Profiler, shows up slow, but I don’t know why
- add_rewrite_rule not working
- Tracing dashboard publish settings from input form in WordPress
- Create wordpress dashboard metabox which spans all columns
- How do I query posts and have their related taxonomies returned in the results?
- modify buddpress adminbar only in admin pages
- How to update WordPress Plugins in your own maintance application?
- How can I add a custom button to the post editor?
- Programmatically creating posts based on external JSON feed (asynchronously)
- External api call using wordpress
- How do I display and edit other posts within the ‘Edit Post’ area of Wp-Admin Dashboard
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?
- WordPress getting data from external API
- how to send csv file to other server using wp_remote_post?
- How do I return XML to an API post request
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- How to output message during plugin activation
- On the WordPress Admin section how do I link to submenu pages created for a plugin?
- How to provide translations for a WordPress TinyMCE plugin?
- Where do I start from
- Where is it better to start learning how to develop for WordPress?
- Is there any way to test if a function running only on plugin update is successfully running?
- Change of query var in pre_get_posts not maintained
- Hook for post permalink update
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- Load page template with custom content using a plugin
- How to put placeholder text in the main post input area?
- Will changing the ‘Plugin Name’ header in the next update of a plugin break anything?
- Performance of several get_option() calls
- Problem with is_active_sidebar?
- Prevent Plugin from loading on ‘wp-admin / wp-login’
- Redirect user to a particular link in 10 seconds after using wp_die
- Getting admin notices working for plugin errors
- Change template dynamically
- override pluggable.php functions
- An echo line in a transition_post_status action leads to “cannot modify header information – headers already sent by”
- How to create database table, add data, update and delete using wpdb via plugins?
- Extending theme PHP class in plugin
- Any ideas to trigger some code after plugin update?
- How to test plugin update through WordPress plugin updater without tagging new release in the repo
- How to access Elementor-navigation-elements via jQuery
- Hook a search form anywhere on the site, using a custom plugin