Did you confirm it was the transient values causing the options to not update?
Here’s the WordPress function to clear transient values: https://codex.wordpress.org/Function_Reference/delete_transient
An example:
<?php
// Create a simple function to delete our transient
function edit_term_delete_transient() {
delete_transient( 'the_transient_name_to_delete' );
}
// Add the function to the edit_term hook so it runs when categories/tags are edited
add_action( 'edit_term', 'edit_term_delete_transient' );
?>
- You can search the database for the names of the transient entries to delete.
(Note, you might also want to verify that the edit_term hook is a sufficient place to call the delete_transient function. You could have other optimized points in your code to call this as well.)
** You can also check https://docs.woocommerce.com/document/shipping-method-api/ for info on how to manipulate WooCommerce shipping options.
Related Posts:
- Is get_option() faster than accessing get_transient()?
- Storing product price data in the database
- Theme / Divi change visitor css and site logo and all site urls based on REQUEST_URI non logged in wp user
- framework for plugin/theme options panel? [closed]
- 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
- 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
- Best practices for using the transients API
- What’s the best method for emptying an option created with the Settings API?
- Releasing new plugin version, how to rename old options keys?
- WordPress updates defined vs add_filter?
- Creating Settings Page with dropdowns for Plugin
- How to properly sanitize strings for update_option()
- Does using set_transient() function can lead to MySQL problems?
- How to add a new plugin page under desired Options page?
- Why does WordPress create two transients with the same name when I specify timeout value?
- WooCommerce get Shipping Class of product from either the product id or the order after order is completed
- How to iterate through custom posts and add the title to an array
- How do I handle multiple Submit buttons in plugin’s option page?
- product-attribute-slug-is-too-long-28-characters-max
- Deletion of shared options using uninstall.php
- Why won’t register_setting() create a setting?
- get all products of one category
- Multiple entries in get_option results? or why is _multiwidget set to 1?
- Dropdown list of pages to get page id to store in plugin options
- update_option is not working!
- update_option_{$option} Too Few Arguments
- Woocommerce add custom button to backend order table
- Save user-specific options in WordPress admin
- How to store accumulate multiple option values in a single array using Options_API
- Plugin vs Settings load order (woocommerce dependency)
- How do I hook a custom discount to change a WC_Order price total on WooCommerce?
- Creating option to allow user to select the page my plugin content will display on
- Unified Approach for Placing Option Pages
- array_map() for sanitizing $_POST
- WordPress plugin options and jQuery
- WordPress Plugin Setting’s POST
- Performance of several get_option() calls
- Add multiple shipping rates from add_rate function with custom ID
- set_sale_price in WooCommerce [closed]
- Extend plugin options page
- Can I use the different settings sections over different pages using the save options group?
- Options API – Validation Callback $input is NULL
- Woocommerce – Hide a Column in Cart Table
- Print value of an array or variable in a payment plugin
- How to get orders with used coupon in WooCommerce
- Best choice of options/settings framework for plugin/theme development
- How to update total price of completed order in woocommerce? [closed]
- Plugin development: get_post_meta is not working [closed]
- Correct way check nonce (security) using old Options API
- How to store a medium amount of options?
- $wpdb -> Batch insert from XML File?
- How do I change the initial quantity of a product in woocommerce?
- Order properties should not be accessed directly
- How to add settings subpage from a plugin to a settings page created in theme?
- Plugin options not being saved or created
- Remove Internal Style Sheet if no Value Provided?
- 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?
- How to check if Woocommerce Order number equals to post ID?
- Clearing cached plugin data if it is using an external object cache
- How do I add custom column to woocommerce cart?
- How plugins_loaded works?
- Using wp_parse_args to set up Plugin Default Settings
- WooCommerce Conditional Tag inside plugin
- Custom attribute type not displaying terms in edit product – WooCommerce
- WooCommerce registration password field not displaying
- Show special field when correct shipping is chosen
- update woocommere total value on checkout based on selected payment method
- how to add custom functionality after woocommerce place order button
- Custom delete option button in plugin settings
- WooCommerce Admin Reports : Get custom product report based on date range
- Adding a brand column to WooCommerce Products
- How To Change Post Author Default?
- Woocommerce checkout update totals with datepicker
- WP_Editor – Saving Value into Plugin Option – Stripping HTML
- Editing options pages?
- Multiple options pages validation for a plugin
- Strange issue saving custom field data for a WooCommerce order
- PHP – Extend WordPress Woocommerce Revenue Analytics with custom field
- Woocommerce – Convert Delivery method into a custom field
- “import declarations may only appear at top level of a module” when importing WooCommerce API node module
- Woocommerce extend tax report with custom column
- How can we display product price $104 on the cart while the credit card payment method is checked?
- Show disclaimer with accept button before redirecting to the payment gateway website
- How do I apply a custom discount to individual product total prices depending on their categories on the cart and checkout pages of WooCommerce? [closed]
- In woocommerce cart item we can add custom text but how can i add custom link? [closed]
- Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
- Can’t get woocommerce_get_price_html to work [closed]
- How to restrict access to image folder depending on whether product is purchased or not?
- How to extend WooCommerce API to show bookable product availability rules?
- get_option() not returning expected value from plugin
- Parse form values before sending to options.php
- Is using custom table to suit business needs instead of transients a big hit to page load speed?