# Need to update option from another plugin \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/need-to-update-option-from-another-plugin-resolved/11251>\
**Category:** Get Help\
**Tags:** custom, get\_option, get\_plugin\_settings, update\_plugin\_settings\
**Created:** [November 23, 2021, 4:34pm UTC](https://community.gravityforms.com/t/need-to-update-option-from-another-plugin-resolved/11251 "2021-11-23T16:34:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grand\_lady](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@grand\_lady](https://community.gravityforms.com/u/grand_lady)\
**Post date:** [November 23, 2021, 4:34pm UTC](https://community.gravityforms.com/t/need-to-update-option-from-another-plugin-resolved/11251/1 "2021-11-23T16:34:39Z")

</div>

For various reasons, I find myself in the position of needing to update options read by `get_option()` and written by `update_option()` in the context of a feed add-on.  
How do I accomplish this?

I thought I’d override `get_plugin_settings()` and `update_plugin_settings()`, but that doesn’t seem possible.

tia,

---

<div class="post-metadata">

**Author:** ![grand\_lady](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@grand\_lady](https://community.gravityforms.com/u/grand_lady)\
**Post date:** [November 23, 2021, 4:51pm UTC](https://community.gravityforms.com/t/need-to-update-option-from-another-plugin-resolved/11251/2 "2021-11-23T16:51:19Z")

</div>

In the meantime, I’m going to accept the duplicate values. This means the current plugin options will remain. When the options for this feed add-on change, it will update the plugin options too.

---

<div class="post-metadata">

**Author:** ![grand\_lady](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@grand\_lady](https://community.gravityforms.com/u/grand_lady)\
**Post date:** [November 27, 2021, 5:43pm UTC](https://community.gravityforms.com/t/need-to-update-option-from-another-plugin-resolved/11251/3 "2021-11-27T17:43:29Z")

</div>

Solved by treating the new plugin settings as shadows of the original plugin settings.  
When` is_admin()` is true, write the shadowed values from the working ones. on admin page load.  
On save, write the working values from the shadowed ones.  
The functions `get_previous_settings()`, `get_posted_settings()`, `get_current_settings()` are required for this to work.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 27, 2021, 9:47pm UTC](https://community.gravityforms.com/t/need-to-update-option-from-another-plugin-resolved/11251/4 "2021-11-27T21:47:05Z")

</div>

Closed on November 27, 2021, 9:47pm UTC


